%im - Image

Purpose

To draw an image.

Syntax

winio@('%im[image_name]')

Modifiers

Caret (^) - the call-back is called when the user clicks on the image.

Question mark (?) - a help string is supplied.

Description

image_name is standard character string (can be replaced by the @ symbol) giving the name appearing in a resource script.

%im is like %bm (Bitmap) but can be used with PNG, JPEG, BMP, and PCX resources and files.

Example

winio@('%im[myimage]')

The resource file contains one of the following three lines:
  myimage IMAGE imagefile.png
  myimage IMAGE imagefile.jpg
  myimage IMAGE imagefile.bmp
  myimage IMAGE imagefile.pcx

Alternatively, using an external file enclosed in curly brackets:
  winio@('%im[{imagefile.jpg}]')

See also

%ic (Icon),%gi (GIF),%bm (Bitmap)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited