Lua:createPNG

From Cheat Engine
Revision as of 19:24, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Reference

function createPNG(width, height) : PortableNetworkGraphic

Creates a PNG image with the requested dimensions.

Use the returned graphic with Image, Picture, Canvas, or other graphical CE objects.

Function Parameters

Parameter Type Description
width Integer Width in pixels.
height Integer Height in pixels.

Returns

PortableNetworkGraphic — The new PortableNetworkGraphic object.

Examples

local graphic = createPNG(128, 128)
-- Draw on or assign the returned graphic.

See Also

Main Pages