Image:set_image_size

Sets the image size in pixels.

Usage

image:set_image_size(width, height)

Arguments

Name Type Description
width number Width in pixels.
height number Height in pixels.

Examples

local image = crystal.Image:new();
image:set_image_size(200, 100);
print(image:image_size()); -- Prints the 200, 100

This site uses Just the Docs, a documentation theme for Jekyll.