.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/Image.xml. .. _class_Image: Image ===== **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------------------+----------------------------------------+------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`data` | ``{ "data": PackedByteArray(), "format": "Lum8", "height": 0, "mipmaps": false, "width": 0 }`` | +-------------------------------------+----------------------------------------+------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`adjust_bcs` **(** :ref:`float` brightness, :ref:`float` contrast, :ref:`float` saturation **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`blend_rect` **(** :ref:`Image` src, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`blend_rect_mask` **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`blit_rect` **(** :ref:`Image` src, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`blit_rect_mask` **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`bump_map_to_normal_map` **(** :ref:`float` bump_scale=1.0 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_mipmaps` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`compress` **(** :ref:`CompressMode` mode, :ref:`CompressSource` source=0, :ref:`ASTCFormat` astc_format=0 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`compress_from_channels` **(** :ref:`CompressMode` mode, :ref:`UsedChannels` channels, :ref:`ASTCFormat` astc_format=0 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`compute_image_metrics` **(** :ref:`Image` compared_image, :ref:`bool` use_luma **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`convert` **(** :ref:`Format` format **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`copy_from` **(** :ref:`Image` src **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`create` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format **)** |static| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`create_empty` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format **)** |static| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`create_from_data` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format, :ref:`PackedByteArray` data **)** |static| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`crop` **(** :ref:`int` width, :ref:`int` height **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`decompress` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`AlphaMode` | :ref:`detect_alpha` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`UsedChannels` | :ref:`detect_used_channels` **(** :ref:`CompressSource` source=0 **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`fill` **(** :ref:`Color` color **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`fill_rect` **(** :ref:`Rect2i` rect, :ref:`Color` color **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`fix_alpha_edges` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`flip_x` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`flip_y` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`generate_mipmaps` **(** :ref:`bool` renormalize=false **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`get_data` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_data_size` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Format` | :ref:`get_format` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_height` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_mipmap_count` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_mipmap_offset` **(** :ref:`int` mipmap **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_pixel` **(** :ref:`int` x, :ref:`int` y **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_pixelv` **(** :ref:`Vector2i` point **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`get_region` **(** :ref:`Rect2i` region **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`get_size` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`get_used_rect` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_width` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_mipmaps` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_compressed` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_empty` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_invisible` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load` **(** :ref:`String` path **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_bmp_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`load_from_file` **(** :ref:`String` path **)** |static| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_jpg_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_ktx_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_png_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_svg_from_buffer` **(** :ref:`PackedByteArray` buffer, :ref:`float` scale=1.0 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_svg_from_string` **(** :ref:`String` svg_str, :ref:`float` scale=1.0 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_tga_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_webp_from_buffer` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`normal_map_to_xy` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`premultiply_alpha` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` width, :ref:`int` height, :ref:`Interpolation` interpolation=1 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize_to_po2` **(** :ref:`bool` square=false, :ref:`Interpolation` interpolation=1 **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`rgbe_to_srgb` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`rotate_90` **(** :ref:`ClockDirection` direction **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`rotate_180` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save_exr` **(** :ref:`String` path, :ref:`bool` grayscale=false **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`save_exr_to_buffer` **(** :ref:`bool` grayscale=false **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save_jpg` **(** :ref:`String` path, :ref:`float` quality=0.75 **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`save_jpg_to_buffer` **(** :ref:`float` quality=0.75 **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save_png` **(** :ref:`String` path **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`save_png_to_buffer` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save_webp` **(** :ref:`String` path, :ref:`bool` lossy=false, :ref:`float` quality=0.75 **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`save_webp_to_buffer` **(** :ref:`bool` lossy=false, :ref:`float` quality=0.75 **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_data` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format, :ref:`PackedByteArray` data **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pixel` **(** :ref:`int` x, :ref:`int` y, :ref:`Color` color **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pixelv` **(** :ref:`Vector2i` point, :ref:`Color` color **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`shrink_x2` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`srgb_to_linear` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_Image_Format: .. rst-class:: classref-enumeration enum **Format**: .. _class_Image_constant_FORMAT_L8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_L8** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_LA8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_LA8** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_R8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_R8** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RG8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RG8** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGB8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGB8** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBA8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBA8** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBA4444: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBA4444** = ``6`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGB565: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGB565** = ``7`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RF: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RF** = ``8`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGF: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGF** = ``9`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBF: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBF** = ``10`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBAF: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBAF** = ``11`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RH: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RH** = ``12`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGH: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGH** = ``13`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBH: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBH** = ``14`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBAH: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBAH** = ``15`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGBE9995: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGBE9995** = ``16`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_DXT1: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_DXT1** = ``17`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_DXT3: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_DXT3** = ``18`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_DXT5: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_DXT5** = ``19`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGTC_R: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGTC_R** = ``20`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_RGTC_RG: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_RGTC_RG** = ``21`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_BPTC_RGBA: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_BPTC_RGBA** = ``22`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_BPTC_RGBF: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_BPTC_RGBF** = ``23`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_BPTC_RGBFU: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_BPTC_RGBFU** = ``24`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC** = ``25`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_R11: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_R11** = ``26`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_R11S: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_R11S** = ``27`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RG11: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RG11** = ``28`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RG11S: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RG11S** = ``29`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RGB8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RGB8** = ``30`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RGBA8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RGBA8** = ``31`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RGB8A1: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RGB8A1** = ``32`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ETC2_RA_AS_RG: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ETC2_RA_AS_RG** = ``33`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_DXT5_RA_AS_RG: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_DXT5_RA_AS_RG** = ``34`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ASTC_4x4: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ASTC_4x4** = ``35`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ASTC_4x4_HDR: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ASTC_4x4_HDR** = ``36`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ASTC_8x8: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ASTC_8x8** = ``37`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_ASTC_8x8_HDR: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_ASTC_8x8_HDR** = ``38`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_FORMAT_MAX: .. rst-class:: classref-enumeration-constant :ref:`Format` **FORMAT_MAX** = ``39`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_Interpolation: .. rst-class:: classref-enumeration enum **Interpolation**: .. _class_Image_constant_INTERPOLATE_NEAREST: .. rst-class:: classref-enumeration-constant :ref:`Interpolation` **INTERPOLATE_NEAREST** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_INTERPOLATE_BILINEAR: .. rst-class:: classref-enumeration-constant :ref:`Interpolation` **INTERPOLATE_BILINEAR** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_INTERPOLATE_CUBIC: .. rst-class:: classref-enumeration-constant :ref:`Interpolation` **INTERPOLATE_CUBIC** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_INTERPOLATE_TRILINEAR: .. rst-class:: classref-enumeration-constant :ref:`Interpolation` **INTERPOLATE_TRILINEAR** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_INTERPOLATE_LANCZOS: .. rst-class:: classref-enumeration-constant :ref:`Interpolation` **INTERPOLATE_LANCZOS** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_AlphaMode: .. rst-class:: classref-enumeration enum **AlphaMode**: .. _class_Image_constant_ALPHA_NONE: .. rst-class:: classref-enumeration-constant :ref:`AlphaMode` **ALPHA_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_ALPHA_BIT: .. rst-class:: classref-enumeration-constant :ref:`AlphaMode` **ALPHA_BIT** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_ALPHA_BLEND: .. rst-class:: classref-enumeration-constant :ref:`AlphaMode` **ALPHA_BLEND** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_CompressMode: .. rst-class:: classref-enumeration enum **CompressMode**: .. _class_Image_constant_COMPRESS_S3TC: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_S3TC** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_ETC: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_ETC** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_ETC2: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_ETC2** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_BPTC: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_BPTC** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_ASTC: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_ASTC** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_MAX: .. rst-class:: classref-enumeration-constant :ref:`CompressMode` **COMPRESS_MAX** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_UsedChannels: .. rst-class:: classref-enumeration enum **UsedChannels**: .. _class_Image_constant_USED_CHANNELS_L: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_L** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_USED_CHANNELS_LA: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_LA** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_USED_CHANNELS_R: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_R** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_USED_CHANNELS_RG: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_RG** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_USED_CHANNELS_RGB: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_RGB** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_USED_CHANNELS_RGBA: .. rst-class:: classref-enumeration-constant :ref:`UsedChannels` **USED_CHANNELS_RGBA** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_CompressSource: .. rst-class:: classref-enumeration enum **CompressSource**: .. _class_Image_constant_COMPRESS_SOURCE_GENERIC: .. rst-class:: classref-enumeration-constant :ref:`CompressSource` **COMPRESS_SOURCE_GENERIC** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_SOURCE_SRGB: .. rst-class:: classref-enumeration-constant :ref:`CompressSource` **COMPRESS_SOURCE_SRGB** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_COMPRESS_SOURCE_NORMAL: .. rst-class:: classref-enumeration-constant :ref:`CompressSource` **COMPRESS_SOURCE_NORMAL** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_Image_ASTCFormat: .. rst-class:: classref-enumeration enum **ASTCFormat**: .. _class_Image_constant_ASTC_FORMAT_4x4: .. rst-class:: classref-enumeration-constant :ref:`ASTCFormat` **ASTC_FORMAT_4x4** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Image_constant_ASTC_FORMAT_8x8: .. rst-class:: classref-enumeration-constant :ref:`ASTCFormat` **ASTC_FORMAT_8x8** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Constants --------- .. _class_Image_constant_MAX_WIDTH: .. rst-class:: classref-constant **MAX_WIDTH** = ``16777216`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Image_constant_MAX_HEIGHT: .. rst-class:: classref-constant **MAX_HEIGHT** = ``16777216`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_Image_property_data: .. rst-class:: classref-property :ref:`Dictionary` **data** = ``{ "data": PackedByteArray(), "format": "Lum8", "height": 0, "mipmaps": false, "width": 0 }`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_Image_method_adjust_bcs: .. rst-class:: classref-method void **adjust_bcs** **(** :ref:`float` brightness, :ref:`float` contrast, :ref:`float` saturation **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_blend_rect: .. rst-class:: classref-method void **blend_rect** **(** :ref:`Image` src, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_blend_rect_mask: .. rst-class:: classref-method void **blend_rect_mask** **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_blit_rect: .. rst-class:: classref-method void **blit_rect** **(** :ref:`Image` src, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_blit_rect_mask: .. rst-class:: classref-method void **blit_rect_mask** **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2i` src_rect, :ref:`Vector2i` dst **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_bump_map_to_normal_map: .. rst-class:: classref-method void **bump_map_to_normal_map** **(** :ref:`float` bump_scale=1.0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_clear_mipmaps: .. rst-class:: classref-method void **clear_mipmaps** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_compress: .. rst-class:: classref-method :ref:`Error` **compress** **(** :ref:`CompressMode` mode, :ref:`CompressSource` source=0, :ref:`ASTCFormat` astc_format=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_compress_from_channels: .. rst-class:: classref-method :ref:`Error` **compress_from_channels** **(** :ref:`CompressMode` mode, :ref:`UsedChannels` channels, :ref:`ASTCFormat` astc_format=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_compute_image_metrics: .. rst-class:: classref-method :ref:`Dictionary` **compute_image_metrics** **(** :ref:`Image` compared_image, :ref:`bool` use_luma **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_convert: .. rst-class:: classref-method void **convert** **(** :ref:`Format` format **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_copy_from: .. rst-class:: classref-method void **copy_from** **(** :ref:`Image` src **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_create: .. rst-class:: classref-method :ref:`Image` **create** **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_create_empty: .. rst-class:: classref-method :ref:`Image` **create_empty** **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_create_from_data: .. rst-class:: classref-method :ref:`Image` **create_from_data** **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format, :ref:`PackedByteArray` data **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_crop: .. rst-class:: classref-method void **crop** **(** :ref:`int` width, :ref:`int` height **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_decompress: .. rst-class:: classref-method :ref:`Error` **decompress** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_detect_alpha: .. rst-class:: classref-method :ref:`AlphaMode` **detect_alpha** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_detect_used_channels: .. rst-class:: classref-method :ref:`UsedChannels` **detect_used_channels** **(** :ref:`CompressSource` source=0 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_fill: .. rst-class:: classref-method void **fill** **(** :ref:`Color` color **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_fill_rect: .. rst-class:: classref-method void **fill_rect** **(** :ref:`Rect2i` rect, :ref:`Color` color **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_fix_alpha_edges: .. rst-class:: classref-method void **fix_alpha_edges** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_flip_x: .. rst-class:: classref-method void **flip_x** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_flip_y: .. rst-class:: classref-method void **flip_y** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_generate_mipmaps: .. rst-class:: classref-method :ref:`Error` **generate_mipmaps** **(** :ref:`bool` renormalize=false **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_data: .. rst-class:: classref-method :ref:`PackedByteArray` **get_data** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_data_size: .. rst-class:: classref-method :ref:`int` **get_data_size** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_format: .. rst-class:: classref-method :ref:`Format` **get_format** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_height: .. rst-class:: classref-method :ref:`int` **get_height** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_mipmap_count: .. rst-class:: classref-method :ref:`int` **get_mipmap_count** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_mipmap_offset: .. rst-class:: classref-method :ref:`int` **get_mipmap_offset** **(** :ref:`int` mipmap **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_pixel: .. rst-class:: classref-method :ref:`Color` **get_pixel** **(** :ref:`int` x, :ref:`int` y **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_pixelv: .. rst-class:: classref-method :ref:`Color` **get_pixelv** **(** :ref:`Vector2i` point **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_region: .. rst-class:: classref-method :ref:`Image` **get_region** **(** :ref:`Rect2i` region **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_size: .. rst-class:: classref-method :ref:`Vector2i` **get_size** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_used_rect: .. rst-class:: classref-method :ref:`Rect2i` **get_used_rect** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_get_width: .. rst-class:: classref-method :ref:`int` **get_width** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_has_mipmaps: .. rst-class:: classref-method :ref:`bool` **has_mipmaps** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_is_compressed: .. rst-class:: classref-method :ref:`bool` **is_compressed** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_is_empty: .. rst-class:: classref-method :ref:`bool` **is_empty** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_is_invisible: .. rst-class:: classref-method :ref:`bool` **is_invisible** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load: .. rst-class:: classref-method :ref:`Error` **load** **(** :ref:`String` path **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_bmp_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_bmp_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_from_file: .. rst-class:: classref-method :ref:`Image` **load_from_file** **(** :ref:`String` path **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_jpg_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_jpg_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_ktx_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_ktx_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_png_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_png_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_svg_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_svg_from_buffer** **(** :ref:`PackedByteArray` buffer, :ref:`float` scale=1.0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_svg_from_string: .. rst-class:: classref-method :ref:`Error` **load_svg_from_string** **(** :ref:`String` svg_str, :ref:`float` scale=1.0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_tga_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_tga_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_load_webp_from_buffer: .. rst-class:: classref-method :ref:`Error` **load_webp_from_buffer** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_normal_map_to_xy: .. rst-class:: classref-method void **normal_map_to_xy** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_premultiply_alpha: .. rst-class:: classref-method void **premultiply_alpha** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_resize: .. rst-class:: classref-method void **resize** **(** :ref:`int` width, :ref:`int` height, :ref:`Interpolation` interpolation=1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_resize_to_po2: .. rst-class:: classref-method void **resize_to_po2** **(** :ref:`bool` square=false, :ref:`Interpolation` interpolation=1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_rgbe_to_srgb: .. rst-class:: classref-method :ref:`Image` **rgbe_to_srgb** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_rotate_90: .. rst-class:: classref-method void **rotate_90** **(** :ref:`ClockDirection` direction **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_rotate_180: .. rst-class:: classref-method void **rotate_180** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_exr: .. rst-class:: classref-method :ref:`Error` **save_exr** **(** :ref:`String` path, :ref:`bool` grayscale=false **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_exr_to_buffer: .. rst-class:: classref-method :ref:`PackedByteArray` **save_exr_to_buffer** **(** :ref:`bool` grayscale=false **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_jpg: .. rst-class:: classref-method :ref:`Error` **save_jpg** **(** :ref:`String` path, :ref:`float` quality=0.75 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_jpg_to_buffer: .. rst-class:: classref-method :ref:`PackedByteArray` **save_jpg_to_buffer** **(** :ref:`float` quality=0.75 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_png: .. rst-class:: classref-method :ref:`Error` **save_png** **(** :ref:`String` path **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_png_to_buffer: .. rst-class:: classref-method :ref:`PackedByteArray` **save_png_to_buffer** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_webp: .. rst-class:: classref-method :ref:`Error` **save_webp** **(** :ref:`String` path, :ref:`bool` lossy=false, :ref:`float` quality=0.75 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_save_webp_to_buffer: .. rst-class:: classref-method :ref:`PackedByteArray` **save_webp_to_buffer** **(** :ref:`bool` lossy=false, :ref:`float` quality=0.75 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_set_data: .. rst-class:: classref-method void **set_data** **(** :ref:`int` width, :ref:`int` height, :ref:`bool` use_mipmaps, :ref:`Format` format, :ref:`PackedByteArray` data **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_set_pixel: .. rst-class:: classref-method void **set_pixel** **(** :ref:`int` x, :ref:`int` y, :ref:`Color` color **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_set_pixelv: .. rst-class:: classref-method void **set_pixelv** **(** :ref:`Vector2i` point, :ref:`Color` color **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_shrink_x2: .. rst-class:: classref-method void **shrink_x2** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Image_method_srgb_to_linear: .. rst-class:: classref-method void **srgb_to_linear** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`