Raster Image Home

LiteCAD stores all raster images in a global list. This are functions used to add/remove objects in the list:

Function Meaning
lcPaint_ImageAdd Adds new image object into images list
lcPaint_ImageDelete Deletes image object from images list
lcPaint_ImageGetFirst
lcPaint_ImageGetNext
Used to sequentially retrieve all image objects from a list
lcPaint_ImageGetByID Retrieves an image object by its identifier

Raster image can be drawn in a window with the function lcPaint_DrawImage .

These are the functions used to manage raster image:

Function Meaning
lcPaint_ImageLoad Loads image from a file
lcPaint_ImageCopy Copies image from other object
lcPaint_ImageCreate Creates empty image
lcPaint_ImageSetPixel Sets pixel color
lcPaint_ImageFlip Flips image horizontally or/and vertically
lcPaint_ImageRotate Rotates image
lcPaint_ImageGray Converts color image to grayscale
lcPaint_ImageResize Upsampling / downsampling
lcPaint_ImageGetPtbuf Creates clipping polygon for rotated image

Raster image has the following properties:

Property Type Access Meaning
LC_PROP_IMAGE_ID int R Identifier
LC_PROP_IMAGE_FILENAME string R Filename
LC_PROP_IMAGE_W int R Width, pixels
LC_PROP_IMAGE_H int R Height, pixels