DIAdem Help

Object: Picture

  • Updated2024-09-12
  • 2 minute(s) read

Object: Picture

The Picture object provides access to a graphic in DIAdem VIEW. You use the Picture object to specify the properties of the graphics file to be displayed.

The following example displays a graphic:

VBScriptPython

 

Dim oMySheet, oMyPicture
Call View.Sheets.RemoveAll()
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "Picture"
Set oMyPicture = oMySheet.ActiveArea.DisplayObj
oMyPicture.FileName = ProgramDrv & "Examples/Documents/Course.png"
oMyPicture.KeepRatio = True