From ec96e36bc9c2884226bd5a546e7b9717988022cd Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 7 Jun 2016 12:17:18 +0200 Subject: [PATCH] Classref for: ImageTexture, Image, LargeTexture --- doc/base/classes.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 008733cf520..1beda5f2d0e 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -15237,6 +15237,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Copy a "src_rect" [Rect2] from "src" [Image] to this [Image] on coordinates "dest". @@ -15247,6 +15248,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Transfer data from "src" to this [Image] using a "brush" as a mask/brush on coordinates "pos". @@ -15259,6 +15261,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return a new [Image] from this [Image] that is created by brushhing see [method brush_transfer]. @@ -15267,6 +15270,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return a new compressed [Image] from this [Image] using one of [Image].COMPRESS_*. @@ -15275,18 +15279,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return a new [Image] from this [Image] with a different format. + Return a new decompressed [Image]. + Return whether this [Image] is empty(no data). @@ -15297,18 +15304,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the raw data of the [Image]. + Return the format of the [Image], one of [Image].FORMAT_*. + Return the height of the [Image]. @@ -15321,6 +15331,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the color of the pixel in the [Image] on coordinates "x,y" on mipmap level "mipmap_level". @@ -15329,18 +15340,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return a new [Image] that is a copy of "area" in this [Image]. + Return the area of this [Image] that is used/visibly colored/opaque. + Return the width of the [Image]. @@ -15349,6 +15363,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Load an [Image]. @@ -15361,6 +15376,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Put a pixel of "color" on coordinates "x,y" on mipmap level "mipmap_level". @@ -15373,6 +15389,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return a new [Image] from this [Image] that is resized to size "x,y" using [Image].INTERPOLATE_*. @@ -15381,6 +15398,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Save this [Image] as a png. @@ -15454,12 +15472,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + A [Texture] based on an [Image]. + A [Texture] based on an [Image]. Can be created from an [Image]. @@ -15472,6 +15498,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Create a new [ImageTexture] with "width" and "height". + "format" one of [Image].FORMAT_*. + "flags" one or more of [Texture].FLAG_*. @@ -15480,54 +15509,63 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Create a new [ImageTexture] from an [Image] with "flags" from [Texture].FLAG_*. + Return the format of the [ImageTexture], one of [Image].FORMAT_*. + Load an [ImageTexure]. + Set the [Image] of this [ImageTexture]. + Return the [Image] of this [ImageTexture]. + Set the storage type. One of [ImageTexture].STORAGE_*. + Return the storage type. One of [ImageTexture].STORAGE_*. + Set the storage quality in case of [ImageTexture].STORAGE_COMPRESS_LOSSY. + Return the storage quality for [ImageTexture].STORAGE_COMPRESS_LOSSY. @@ -15555,10 +15593,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + [Image] data is stored raw and unaltered. + [Image] data is compressed with a lossy algorithm. You can set the storage quality with [method set_lossy_storage_quality]. + [Image] data is compressed with a lossless algorithm. @@ -17979,8 +18020,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + A Texture capable of storing many smaller Textures with offsets. + A Texture capable of storing many smaller Textures with offsets. + You can dynamically add pieces(Textures) to this fLargeTexture] using different offsets. @@ -17991,6 +18035,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Add another [Texture] to this [LargeTexture], starting on offset "ofs". @@ -17999,6 +18044,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the offset of the piece with index "idx" to "ofs". @@ -18007,22 +18053,26 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the [Texture] of the piece with index "idx" to "ofs". + Set the size of this [LargeTexture]. + Clear the [LargeTexture]. + Return the number of pieces currently in this [LargeTexture]. @@ -18031,6 +18081,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the offset of the piece with index "idx". @@ -18039,6 +18090,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the [Texture] of the piece with index "idx".