Image Object
Home ] Up ] General Object Information ] Label Object ] Button Object ] Text Object ] Banner Object ] Scrolling Text Object ] List Object ] Drop-Down Object ] Check Box Object ] Plotting Object ] Slider Object ] Bar Object ] Meter and Gauge Objects ] [ Image Object ] Image Button Object ] Back, Timers and Reset Objects ]

The image object can be used to display images or for other uses.

bulletThe image object can be used to display an image.  Simple place it on the plot background and drag and drop an image into it's configuration image box.
bulletThe update value can be used to specify an image.  In this example the 1st position (rightmost) digit of analog value channel 0 is part of the image name.  As analog data arrive, the image reflects that digit.

bulletCreating:
oImage.objName=L,T [,W,H,image,border (0/1)]
!POBJ oImage.img1=5,20,10,10,comp\LED_RED_1.jpg,1

bulletFunctions:
SET Value (.Set or omitted)
Images are asumed to be in the media path, the macro path (PATH), or can be provided the full path.
!POBJ objName=image
!POBJ img1=comp\LED_RED_0.jpg


Clear (.Clear or Clr)
Clears the image.  Images are transparent when cleared.
!POBJ objName.Clr 
!POBJ img2.Clr

Text Tip (.Tip)
Sets the text pop-up tip
!POBJ objName.Tip=Text string
!POBJ img1.Tip=Status of Heater

Move (.Move or .M)
Moves the object to new coordinates/changes sizing
!POBJ objName.Move=[L,T,W,H]   or !POBJ objName.M=[L,T,W,H] 
!POBJ img1.M=50,50,,10

bulletUpdate Value (.Update or .U)
Sets the value which will be used to update the object whenever a !POBJ Update is performed.
!POBJ obj.Name.U=[text]
!POBJ img1.U=comp\LED_RED_(BIT0).JPG

bulletCode Event - (.C or .Code)
Activated by a click.
objName.Code=string of code.
!POBJ img1.C=!STAT The date and time is (PRDT)

bulletValues
(objName) - No significant data returned
(objName.T) - Top coordinate
(objName.L) - Left coordinate
(objName.W) - Width
(objName.H) - Height
(objName.B) - Bottom coordinate
(objName.R) - Right coordinate
(objName.BC) - Color
(objName.X) - The X coordinate for the background where the object were it was last clicked, or the mouse was moved with the left-button down.
(objName.Y) - The Y coordinate for the background where the object were it was last clicked, or the mouse was moved with the left-button down.
(objName.XP) - The X coordinate for the percent into the image where it was last clicked (0--100)
(objName.YP) - The Y coordinate for the percent into the image where it was last clicked (0--100)
(ME) - Used only in its event code, returns object name.
((ME)) - Used only in its event code, returns object value.