Difference between revisions of "Lua:Class:Picture"
								
								Jump to navigation
				Jump to search
				
			
		
 					
								
							
		AntumDeluge (talk | contribs)   (Begin creating page for class Picture)  | 
			
(No difference) 
 | 
Revision as of 08:02, 7 February 2019
Picture class: (Inheritence:)
WARNING: This page is unfinished.
Contents
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(false)
-- add icon to Form title bar
local icon = createPicture()
icon.loadFromFile("icon.png")
form.Icon = icon.getBitmap()