Difference between revisions of "Lua:Class:Picture"

From Cheat Engine
Jump to navigation Jump to search
(Begin creating page for class Picture)
 
(Examples: Remove "false" argument from createForm function)
Line 56: Line 56:
 
<pre>
 
<pre>
 
-- main interface
 
-- main interface
local form = createForm(false)
+
local form = createForm()
  
 
-- add icon to Form title bar
 
-- add icon to Form title bar

Revision as of 08:03, 7 February 2019

Picture class: (Inheritence:)

WARNING: This page is unfinished.

Creation

createPicture() : Picture
Returns a newly created Picture.

Properties

Graphic
PNG
Bitmap
Jpeg
Icon

Methods

loadFromFile(filename)
Loads an image from a local file.
saveToFile(filename)
loadFromStream
assign
getGraphic
getPNG
getBitmap
getJpeg

Examples

-- main interface
local form = createForm()

-- add icon to Form title bar
local icon = createPicture()
icon.loadFromFile("icon.png")
form.Icon = icon.getBitmap()

See also

Related Functions

Related Classes