Skip to main content

Image

Description

Datatype for storing images.

p8g can display .jpg, .png, .tga, .bmp, .psd, .gif, .hdr and .pic images. Before an image is used, it must be loaded with the loadImage function. The Image datatype contains fields for the width and height of the image.

Syntax

Image

Fields

FieldDescription
widththe width of the image
heightthe height of the image