pntr
Image manipulation library
pntr_image Struct Reference

Data Fields

pntr_colordata
 
int width
 
int height
 
int pitch
 
bool subimage
 
pntr_rectangle clip
 

Detailed Description

An image, represented by pixel data.

See also
pntr_new_image()
pntr_gen_image_color()

Field Documentation

◆ clip

pntr_rectangle pntr_image::clip

A rectangle representing the region of the image that can be changed.

See also
pntr_image_set_clip()
pntr_image_reset_clip()
pntr_image_get_clip()

◆ data

pntr_color* pntr_image::data

The pixel data for the image.

◆ height

int pntr_image::height

The height of the image.

◆ pitch

int pntr_image::pitch

The amount of bytes of one row of the image.

◆ subimage

bool pntr_image::subimage

Whether or not the image is a portion of another image, sharing the same image data.

See also
pntr_image_subimage()

◆ width

int pntr_image::width

The width of the image.