Image

Create an image with name, type, and size in the active report session.

Syntax

img=Image(name=<'name'>,source=<'file'>,path=<'path'>)

Arguments

caption
The image caption.
Type = string
img.caption = <'image_caption>
name
The name of the image.
Type = method
img.name=<'name'>
path
The path to the image if the source is of type file.
Type = string
img.path=<'image_file_path'>
session
Returns the current session object.
Type = object
sesObj = img.session
setAttributes()
Set multiple attributes simultaneously.
Type = method
img.setAttributes(name=<'name'>,source=<'file'>,path==<'image_file_path'>)
source
Type = string
img.source=<'graphic'/'file'>
Note: In version 2023.0, only 'file' is supported.
type
The image file type.
Type = string
img.type=<'png'/'jpg'/'bmp'/'tif'/'avi'/'gif'/'h3d'>

Example

image = Image() 
image4.path = 'D:/temp/demo_image.png'
image4.caption = 'Demo Image'