Object: 2DBackgroundImageScaling

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 2DBackgroundImageScaling object provides the scaling properties of a background graphic in 2D axis system, in DIAdem REPORT.

The following example generates a 2D axis system with a curve and a background graphic:

Dim oMy2DAxisSystem, oMyCurve, oMyPos, oMyShape, oMySetting, oMyBackgroundImage, oMyScaling
Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\VIEW_MapDisplay.tdm","TDM","")
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80
Set oMyCurve = oMy2DAxisSystem.Curves2D.Add(e2DShapeLine, "MyCurve")
Set oMyShape = oMyCurve.Shape
oMyShape.XChannel.Reference = "[1]/[4]" 
oMyShape.YChannel.Reference = "[1]/[3]" 
oMyShape.Settings.Line.Width = eLineWidth0100
Set oMySetting = oMy2DAxisSystem.Settings
Set oMyBackgroundImage = oMySetting.BackgroundImage
oMyBackgroundImage.FileName = ProgramDrv & "Examples\Documents\Example_map.png"
Set oMyScaling = oMyBackgroundImage.Scaling
oMyScaling.Enable = True
oMyScaling.XBegin = 6.305216
oMyScaling.XEnd = 6.394826
oMyScaling.XUnit = "°"
oMyScaling.YBegin = 50.582192
oMyScaling.YEnd = 50.62974
oMyScaling.YUnit = "°"
Call Report.Refresh()

Properties

Enable | XBegin | XEnd | XUnit | YBegin | YEnd | YUnit

Returned From

2DBackgroundImage.Scaling

WAS THIS ARTICLE HELPFUL?

Not Helpful