ImgCreate
Previous  Top  Next

Prototype

IntImageHandle:=ImgCreate(intWidth,intHeight,intBitsPerPixel,intResolution)

Description

It creates a new empty image.

Parameters

intWidth: integer value for the image width.
intHeight: integer value for the image height.
intBitsPerPixel: integer value for the bits per pixel. Valid values are 1, 4, 8 and 24.
intResolution: integer value for image resolution, dot per inch.

Returned value

Integer value corresponding to the new image handle.

Notes

Don't forget to free memory after image use with ImgDelete.

Example
 
// Creates a monochrome image 2000 x 3000 pixel, with 300 DPI resolution.
NewImage:=ImgCreate(2000,3000,1,300);