From d16375d00516917cb723c68934fe472e114ac036 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 (cherry picked from commit ec96e36bc9c2884226bd5a546e7b9717988022cd) --- doc/base/classes.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index d6cf4306c35..c9dc0f1586b 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -13916,6 +13916,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". @@ -13926,6 +13927,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". @@ -13938,6 +13940,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]. @@ -13946,6 +13949,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_*. @@ -13954,18 +13958,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). @@ -13976,18 +13983,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]. @@ -14000,6 +14010,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". @@ -14008,18 +14019,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]. @@ -14028,6 +14042,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Load an [Image]. @@ -14040,6 +14055,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". @@ -14052,6 +14068,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_*. @@ -14060,6 +14077,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Save this [Image] as a png. @@ -14133,12 +14151,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]. @@ -14151,6 +14177,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_*. @@ -14159,54 +14188,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. @@ -14234,10 +14272,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. @@ -16497,8 +16538,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. @@ -16509,6 +16553,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Add another [Texture] to this [LargeTexture], starting on offset "ofs". @@ -16517,6 +16562,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the offset of the piece with index "idx" to "ofs". @@ -16525,22 +16571,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]. @@ -16549,6 +16599,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the offset of the piece with index "idx". @@ -16557,6 +16608,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the [Texture] of the piece with index "idx".