Object: Image
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > Object: Image
Object: Image
The Image object provides the properties of a graphic in DIAdem REPORT.
The following example inserts a graphic into the current worksheet and assigns a transparent background to this graphic:
| VBScript | Python |
Dim oMyImage, oMyPos Call Report.NewLayout() Set oMyImage = Report.ActiveSheet.Objects.Add(eReportObjectImage, "MyImage") Set oMyPos = oMyImage.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 60 oMyPos.Y1 = 20 oMyPos.Y2 = 60 oMyImage.FileName = MediaLibrPath & "Example1.png" Call oMyImage.BackgroundColor.SetPredefinedColor(eColorIndexNone) Call Report.Refresh()
Properties
BackgroundColor | Embedded | FileName | FullPath | Index | IsSelected | Name | ObjectType | OriginalRatio | Position | RelativePosition | TagStored | TagTemporary | UseOriginalRatio
Methods
Returned From
ReportObjects.Add | ReportObjects.Copy | ReportObjects.Item | SelectedObjects.Item | ToolTipImageContext.Image