class Fox::FXImage

An Image is a rectangular array of pixels. It supports two representations of these pixels: a client-side pixel buffer which is stored as an array of FXColor, and a server-side pixmap which is stored in an organization directly compatible with the screen, for fast drawing onto the device. The server-side representation is not directly accessible from the current process as it lives in the process of the X Server or GDI.

Image rendering hints

IMAGE_KEEP

Keep pixel data in client. By default, FOX discards of the client-side pixel data for an image after you call create() for that image. When the IMAGE_KEEP option is set for FXImage (or one of its subclasses), the client-side buffer is maintained. You will typically want to set this option if you intend to do repeated re-rendering of the image after it has been created.

IMAGE_OWNED

If IMAGE_OWNED is set, the image pixel data is copied into the image. If IMAGE_OWNED is not set, a image pixel string is directly used as memory buffer of the image, without copying the data. If pixel data is given as an Array instead of a string, data is copied in any case.

IMAGE_DITHER

Dither image to look better

IMAGE_NEAREST

Turn off dithering and map to nearest color

IMAGE_OPAQUE

Force opaque background

IMAGE_ALPHACOLOR

By default, FOX will use the transparency color obtained from the image file as the transparency (alpha) color. If you pass the IMAGE_ALPHACOLOR flag, the user-specified transparency color will be used instead.

IMAGE_SHMI

Using shared memory image

IMAGE_SHMP

Using shared memory pixmap

IMAGE_ALPHAGUESS

Guess transparency color from corners