Lua:createJpeg

From Cheat Engine
Jump to navigation Jump to search

<> Reference

function createJpeg(width, height) : JpegImage

Creates a JPEG image with the requested dimensions.

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

Function Parameters[edit]

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

Returns[edit]

JpegImage — The new JpegImage object.

Examples[edit]

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

See Also[edit]

Main Pages