Home |
All Classes |
Grouped Classes |
Index |
Search
CL_Canvas::CL_Canvas
Constructs a canvas.
CL_Canvas(
const CL_Size& size, Format format = rgba32_8888, bool use_colorkey = false, unsigned int colorkey = 0x12345678);
CL_Canvas(
CL_PixelBuffer* provider, bool delete_provider = false, Format format = rgba32_8888, bool use_colorkey = false, unsigned int colorkey = 0x12345678);
CL_Canvas(
const CL_Canvas& copy);
CL_Canvas();
Parameters:
- size
- Dimensions of canvas, in pixels.
- format
- Pixel format of canvas.
- use_colorkey
- If true, colorkey specifies a single color that marks transparency.
- colorkey
- If enabled, colorkey specifies a color that is transparent.
- provider
- Pixel buffer containing initial pixel data to be filled into canvas.
- delete_provider
- If true, canvas will delete provider after copying its contents.
See also:
CL_Canvas
Questions or comments, write to the ClanLib mailing list.