Difference between revisions of "Image"

m (Updated queries.)
Line 1: Line 1:
 
Drawable image type.
 
Drawable image type.
 
== Constructors ==
 
== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Image]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[Constructs::Image]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
Line 8: Line 8:
 
== Functions ==
 
== Functions ==
 
These functions have parentheses in odd places. This is because the Image: namespace is reserved in Mediawiki.
 
These functions have parentheses in odd places. This is because the Image: namespace is reserved in Mediawiki.
{{#ask: [[Category:Functions]] [[parent::Image||Drawable||Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Image||Drawable||Object]][[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 +
 
== Supertypes ==
 
== Supertypes ==
 
* [[parent::Drawable]]
 
* [[parent::Drawable]]

Revision as of 09:59, 7 December 2011

Drawable image type.

Constructors

love.graphics.newArrayImageCreates a new array Image.
love.graphics.newCubeImageCreates a new cubemap Image.
love.graphics.newImageCreates a new Image.
love.graphics.newVolumeImageCreates a new volume Image.

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

See Also


Other Languages