Applies to:
PcVue 11.1 update and PcVue 11.2 update onwards |
||
|
||
Summary:
A new VBA method, SetImage, allows the image file used in the Image drawing element to be changed programmatically. |
||
|
||
Details:
Until the above mentioned versions the only way to change an image in a mimic, at run time, was to save each image in a symbol and then use one of the Symbol animations to control which image is displayed. A new method, SetImage, for the Bitmap and Metafile objects, now allows this to be done programmatically. The syntax of this method is: SetImage(Image As String, NewImageSize As Boolean) As Integer Image – The file name of the new image including the library path. Example: “/SH_ARROWS/ARROWS_EMBOSSED_BOT_BLACK_64.png” NewImageSize – False displays the new image scaled to the original image size. True displays the new image at its native size. Note You can only change an image within the formats supported by the object.
The AVI and GIF objects do not support the SetImage method. |
||
|
||
|
Additional Info
Created on: 28 Feb 2017 Last update: 30 May 2024