Difference between revisions of "Image"

Line 7: Line 7:
 
}}
 
}}
 
{{#ask: [[Category:Functions]] [[parent::Drawable]]
 
{{#ask: [[Category:Functions]] [[parent::Drawable]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent::Object]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 12: Line 16:
 
== Supertypes ==
 
== Supertypes ==
 
[[Drawable]]
 
[[Drawable]]
 +
[[Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 01:57, 13 February 2011

Drawable image type.

Functions

These functions have parentheses in odd places. This is because the Image: namespace is reserved in Mediawiki.

(Image):getDataGets the original ImageData or CompressedData used to create the Image.
(Image):getFlagsGets the flags used when the image was created.
(Image):isCompressedGets whether the Image was created from CompressedData.
(Image):isFormatLinearGets whether the Image was created with a the linear (non-gamma corrected) flag set to true.
(Image):refreshReloads the Image's contents from the ImageData or CompressedData used to create the image.
(Image):replacePixelsReplace the contents of an Image.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Drawable Object

See Also

Other Languages