Difference between revisions of "Image"
(→See Also) |
|||
Line 32: | Line 32: | ||
* [[parent::ImageData]] | * [[parent::ImageData]] | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
+ | * [[love.graphics.newCanvas]] | ||
* [[parent::Image Formats]] | * [[parent::Image Formats]] | ||
[[Category:Types]] | [[Category:Types]] |
Revision as of 21:16, 24 December 2021
Drawable image type.
Constructors
love.graphics.newArrayImage | Creates a new array Image. | 11.0 | |
love.graphics.newCubeImage | Creates a new cubemap Image. | 11.0 | |
love.graphics.newImage | Creates a new Image. | ||
love.graphics.newVolumeImage | Creates a new volume Image. | 11.0 |
Functions
These functions have parentheses in odd places. This is because the Image: namespace is reserved in Mediawiki.
(Image):getData | Gets the original ImageData or CompressedData used to create the Image. | 0.9.0 | 11.0 |
(Image):getFlags | Gets the flags used when the image was created. | 0.10.0 | 11.0 |
(Image):isCompressed | Gets whether the Image was created from CompressedData. | 0.9.0 | |
(Image):isFormatLinear | Gets whether the Image was created with a the linear (non-gamma corrected) flag set to true. | 11.0 | |
(Image):refresh | Reloads the Image's contents from the ImageData or CompressedData used to create the image. | 0.9.0 | 11.0 |
(Image):replacePixels | Replace the contents of an Image. | 11.0 | |
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. | ||
Texture:getDPIScale | Gets the DPI scale factor of the Texture. | 11.0 | |
Texture:getDepth | Gets the depth of a Volume Texture. | 11.0 | |
Texture:getDepthSampleMode | Gets the comparison mode used when sampling from a depth texture in a shader. | 11.0 | |
Texture:getDimensions | Gets the width and height of the Texture. | 0.9.0 | |
Texture:getFilter | Gets the filter mode of the Texture. | ||
Texture:getFormat | Gets the pixel format of the Texture. | 11.0 | |
Texture:getHeight | Gets the height of the Texture. | ||
Texture:getLayerCount | Gets the number of layers / slices in an Array Texture. | 11.0 | |
Texture:getMipmapCount | Gets the number of mipmaps contained in the Texture. | 11.0 | |
Texture:getMipmapFilter | Gets the mipmap filter mode for a Texture. | 0.9.0 | |
Texture:getPixelDimensions | Gets the width and height in pixels of the Texture. | 11.0 | |
Texture:getPixelHeight | Gets the height in pixels of the Texture. | 11.0 | |
Texture:getPixelWidth | Gets the width in pixels of the Texture. | 11.0 | |
Texture:getTextureType | Gets the type of the Texture. | 11.0 | |
Texture:getWidth | Gets the width of the Texture. | ||
Texture:getWrap | Gets the wrapping properties of a Texture. | ||
Texture:isReadable | Gets whether the Texture can be drawn and sent to a Shader. | 11.0 | |
Texture:setDepthSampleMode | Sets the comparison mode used when sampling from a depth texture in a shader. | 11.0 | |
Texture:setFilter | Sets the filter mode of the Texture. | ||
Texture:setMipmapFilter | Sets the mipmap filter mode for a Texture. | 0.9.0 | |
Texture:setWrap | Sets the wrapping properties of a Texture. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info