Skip to content

cf_canvas_get_size

Category: graphics
GitHub: cute_graphics.h


Fetches the canvas's dimensions in pixels.

void cf_canvas_get_size(CF_Canvas canvas, int* w, int* h);
Parameters Description
canvas The canvas.
w Receives the width; can be NULL.
h Receives the height; can be NULL.

Remarks

For a canvas attached to a mip level (attach_mip) this is the mip's size.

CF_Canvas
cf_make_canvas
CF_CanvasParams