Object: SettingsImageExport

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

The SettingsImageExport object provides the export properties of a layout in a graphics file.

The following example generates a 2D axis system with a curve, specifies the export settings, and exports the layout into a GIF file:

Dim oMy2DAxisSystem, oMy2DCurve, oMyGIFExport
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMy2DCurve = oMy2DAxisSystem.Curves2D.Add(e2DShapeLine, "MyCurve")
oMy2DCurve.Shape.XChannel.Reference = "[1]/[1]"
oMy2DCurve.Shape.YChannel.Reference = "[1]/[2]"
Set oMyGIFExport = Report.Settings.ImageExport.GIF
oMyGIFExport.BitsPerPixel = eGIFBitsPerPixelRGB1
oMyGIFExport.Height = 300
oMyGIFExport.UseRatio = True
oMyGIFExport.Width = 400
Call oMy2DAxisSystem.ExportToImage(LayoutWritePath & "MyImage", eImageExportTypeGIF)

Properties

GIF | JPG | PNG | TIF

Returned From

Settings.ImageExport

WAS THIS ARTICLE HELPFUL?

Not Helpful