diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index eb3ab65f40..d427a80541 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1663,6 +1663,9 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
_VariantCall::constant_data[Variant::IMAGE].value["FORMAT_ATC_ALPHA_INTERPOLATED"]=Image::FORMAT_ATC_ALPHA_INTERPOLATED;
_VariantCall::constant_data[Variant::IMAGE].value["FORMAT_CUSTOM"]=Image::FORMAT_CUSTOM;
+ _VariantCall::constant_data[Variant::IMAGE].value["INTERPOLATE_NEAREST"]=Image::INTERPOLATE_NEAREST;
+ _VariantCall::constant_data[Variant::IMAGE].value["INTERPOLATE_BILINEAR"]=Image::INTERPOLATE_BILINEAR;
+ _VariantCall::constant_data[Variant::IMAGE].value["INTERPOLATE_CUBIC"]=Image::INTERPOLATE_CUBIC;
}
void unregister_variant_methods() {
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index d329d5344f..1beda5f2d0 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -1809,9 +1809,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Default usage (storage and editor).
+
+
+
+
@@ -9404,6 +9428,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -9523,6 +9637,10 @@
+
+
+
+
@@ -15119,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".
@@ -15129,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".
@@ -15141,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].
@@ -15149,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_*.
@@ -15157,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).
@@ -15179,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].
@@ -15203,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".
@@ -15211,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].
@@ -15231,6 +15363,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Load an [Image].
@@ -15243,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".
@@ -15255,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_*.
@@ -15263,6 +15398,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Save this [Image] as a png.
@@ -15336,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].
@@ -15354,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_*.
@@ -15362,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.
@@ -15437,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.
@@ -17861,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.
@@ -17873,6 +18035,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Add another [Texture] to this [LargeTexture], starting on offset "ofs".
@@ -17881,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".
@@ -17889,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].
@@ -17913,6 +18081,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Return the offset of the piece with index "idx".
@@ -17921,6 +18090,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Return the [Texture] of the piece with index "idx".
@@ -18672,6 +18842,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Main loop is the abstract main loop base class.
@@ -22296,6 +22496,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+
+
+
+
+
+
+
+
+
+
+
+
@@ -24239,6 +24451,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+
+
+
+
+
+
+
+
+
+
+
+
@@ -36652,6 +36876,14 @@ This method controls whether the position between two cached points is interpola
+
+
+
+
+
+
+
+
@@ -37373,6 +37605,18 @@ This method controls whether the position between two cached points is interpola
+
+
+
+
+
+
+
+
+
+
+
+
@@ -41705,6 +41949,12 @@ This method controls whether the position between two cached points is interpola
2-element structure that can be used to represent positions in 2d-space, or any other pair of numeric values.
+
+
+
+
+
+
@@ -44551,11 +44801,13 @@ This method controls whether the position between two cached points is interpola
-
+
-
+
-
+
+
+