Vai al contenuto

ImageBox

Component to display static images.It allows to drop components inside it, as Panel behaviour. To access background properties easily, in case of many components inside, please refer to the procedure described for “Panel” component.It has the following properties:
  • image: name of file to display. Supported formats: GIF (89a), JPG (jpeg), PNG (png) and SVG (only for G-Vision). Note: upper case and lower case letters in file name must be entered correctly because target is case-sensitive.
  • stretched: indicates if image has to be adapted to component size. If flag is active, bitmap will be enlarged or reduced in order to fill entire area of component.
  • alignImage: vertical alignment of the image inside the component
  • justifyImage: horizontal alignment of the image inside the component
  • updateMode: mode used to draw the figure.
  • CLEAR_BG: before drawing the figure, the background is erased
  • SMART_UPDATE: the background is never erased, and any figures below are overwritten only by the figure to be loaded (useful if the figure is smaller than the area).
  • DOUBLE_BUFF: the complete image is drawn in memory and then copied completely on the screen. This mode is useful based on components derived from ImageChooser and ImageShow, which can produce animations.
Note: where the background colour or an associated image is modified using the condition feature, the UpdateMode property is managed automatically by the component as if it were set to CLEAR_BG.