class_image.rst 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Image.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Image:
  5. Image
  6. =====
  7. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Image datatype.
  12. Member Functions
  13. ----------------
  14. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`blend_rect<class_Image_blend_rect>` **(** :ref:`Image<class_image>` src, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)** |
  16. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`blend_rect_mask<class_Image_blend_rect_mask>` **(** :ref:`Image<class_image>` src, :ref:`Image<class_image>` mask, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)** |
  18. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`blit_rect<class_Image_blit_rect>` **(** :ref:`Image<class_image>` src, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)** |
  20. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`blit_rect_mask<class_Image_blit_rect_mask>` **(** :ref:`Image<class_image>` src, :ref:`Image<class_image>` mask, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)** |
  22. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`clear_mipmaps<class_Image_clear_mipmaps>` **(** **)** |
  24. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`compress<class_Image_compress>` **(** :ref:`int<class_int>` mode, :ref:`int<class_int>` source, :ref:`float<class_float>` lossy_quality **)** |
  26. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`convert<class_Image_convert>` **(** :ref:`int<class_int>` format **)** |
  28. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`copy_from<class_Image_copy_from>` **(** :ref:`Image<class_image>` src **)** |
  30. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`create<class_Image_create>` **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`bool<class_bool>` use_mipmaps, :ref:`int<class_int>` format **)** |
  32. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`create_from_data<class_Image_create_from_data>` **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`bool<class_bool>` use_mipmaps, :ref:`int<class_int>` format, :ref:`PoolByteArray<class_poolbytearray>` data **)** |
  34. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`crop<class_Image_crop>` **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height **)** |
  36. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`int<class_int>` | :ref:`decompress<class_Image_decompress>` **(** **)** |
  38. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`int<class_int>` | :ref:`detect_alpha<class_Image_detect_alpha>` **(** **)** const |
  40. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | void | :ref:`expand_x2_hq2x<class_Image_expand_x2_hq2x>` **(** **)** |
  42. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`fill<class_Image_fill>` **(** :ref:`Color<class_color>` color **)** |
  44. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`fix_alpha_edges<class_Image_fix_alpha_edges>` **(** **)** |
  46. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`flip_x<class_Image_flip_x>` **(** **)** |
  48. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | void | :ref:`flip_y<class_Image_flip_y>` **(** **)** |
  50. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`int<class_int>` | :ref:`generate_mipmaps<class_Image_generate_mipmaps>` **(** **)** |
  52. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`PoolByteArray<class_poolbytearray>` | :ref:`get_data<class_Image_get_data>` **(** **)** const |
  54. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`get_format<class_Image_get_format>` **(** **)** const |
  56. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`int<class_int>` | :ref:`get_height<class_Image_get_height>` **(** **)** const |
  58. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`int<class_int>` | :ref:`get_mipmap_offset<class_Image_get_mipmap_offset>` **(** :ref:`int<class_int>` mipmap **)** const |
  60. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Color<class_color>` | :ref:`get_pixel<class_Image_get_pixel>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y **)** const |
  62. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`Image<class_image>` | :ref:`get_rect<class_Image_get_rect>` **(** :ref:`Rect2<class_rect2>` rect **)** const |
  64. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Vector2<class_vector2>` | :ref:`get_size<class_Image_get_size>` **(** **)** const |
  66. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`Rect2<class_rect2>` | :ref:`get_used_rect<class_Image_get_used_rect>` **(** **)** const |
  68. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`int<class_int>` | :ref:`get_width<class_Image_get_width>` **(** **)** const |
  70. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`bool<class_bool>` | :ref:`has_mipmaps<class_Image_has_mipmaps>` **(** **)** const |
  72. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`bool<class_bool>` | :ref:`is_compressed<class_Image_is_compressed>` **(** **)** const |
  74. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`bool<class_bool>` | :ref:`is_empty<class_Image_is_empty>` **(** **)** const |
  76. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`bool<class_bool>` | :ref:`is_invisible<class_Image_is_invisible>` **(** **)** const |
  78. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`int<class_int>` | :ref:`load<class_Image_load>` **(** :ref:`String<class_string>` path **)** |
  80. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`lock<class_Image_lock>` **(** **)** |
  82. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`normalmap_to_xy<class_Image_normalmap_to_xy>` **(** **)** |
  84. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`premultiply_alpha<class_Image_premultiply_alpha>` **(** **)** |
  86. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`resize<class_Image_resize>` **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` interpolation=1 **)** |
  88. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | void | :ref:`resize_to_po2<class_Image_resize_to_po2>` **(** :ref:`bool<class_bool>` square=false **)** |
  90. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | :ref:`int<class_int>` | :ref:`save_png<class_Image_save_png>` **(** :ref:`String<class_string>` path **)** const |
  92. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | void | :ref:`set_pixel<class_Image_set_pixel>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`Color<class_color>` color **)** |
  94. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | void | :ref:`shrink_x2<class_Image_shrink_x2>` **(** **)** |
  96. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | void | :ref:`srgb_to_linear<class_Image_srgb_to_linear>` **(** **)** |
  98. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | void | :ref:`unlock<class_Image_unlock>` **(** **)** |
  100. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. Member Variables
  102. ----------------
  103. - :ref:`Dictionary<class_dictionary>` **data**
  104. Numeric Constants
  105. -----------------
  106. - **FORMAT_L8** = **0**
  107. - **FORMAT_LA8** = **1**
  108. - **FORMAT_R8** = **2**
  109. - **FORMAT_RG8** = **3**
  110. - **FORMAT_RGB8** = **4**
  111. - **FORMAT_RGBA8** = **5**
  112. - **FORMAT_RGBA4444** = **6**
  113. - **FORMAT_RGBA5551** = **7**
  114. - **FORMAT_RF** = **8**
  115. - **FORMAT_RGF** = **9**
  116. - **FORMAT_RGBF** = **10**
  117. - **FORMAT_RGBAF** = **11**
  118. - **FORMAT_RH** = **12**
  119. - **FORMAT_RGH** = **13**
  120. - **FORMAT_RGBH** = **14**
  121. - **FORMAT_RGBAH** = **15**
  122. - **FORMAT_RGBE9995** = **16**
  123. - **FORMAT_DXT1** = **17**
  124. - **FORMAT_DXT3** = **18**
  125. - **FORMAT_DXT5** = **19**
  126. - **FORMAT_RGTC_R** = **20**
  127. - **FORMAT_RGTC_RG** = **21**
  128. - **FORMAT_BPTC_RGBA** = **22**
  129. - **FORMAT_BPTC_RGBF** = **23**
  130. - **FORMAT_BPTC_RGBFU** = **24**
  131. - **FORMAT_PVRTC2** = **25**
  132. - **FORMAT_PVRTC2A** = **26**
  133. - **FORMAT_PVRTC4** = **27**
  134. - **FORMAT_PVRTC4A** = **28**
  135. - **FORMAT_ETC** = **29**
  136. - **FORMAT_ETC2_R11** = **30**
  137. - **FORMAT_ETC2_R11S** = **31**
  138. - **FORMAT_ETC2_RG11** = **32**
  139. - **FORMAT_ETC2_RG11S** = **33**
  140. - **FORMAT_ETC2_RGB8** = **34**
  141. - **FORMAT_ETC2_RGBA8** = **35**
  142. - **FORMAT_ETC2_RGB8A1** = **36**
  143. - **FORMAT_MAX** = **37**
  144. - **INTERPOLATE_NEAREST** = **0**
  145. - **INTERPOLATE_BILINEAR** = **1**
  146. - **INTERPOLATE_CUBIC** = **2**
  147. - **ALPHA_NONE** = **0**
  148. - **ALPHA_BIT** = **1**
  149. - **ALPHA_BLEND** = **2**
  150. - **COMPRESS_S3TC** = **0**
  151. - **COMPRESS_PVRTC2** = **1**
  152. - **COMPRESS_PVRTC4** = **2**
  153. - **COMPRESS_ETC** = **3**
  154. - **COMPRESS_ETC2** = **4**
  155. - **COMPRESS_SOURCE_GENERIC** = **0**
  156. - **COMPRESS_SOURCE_SRGB** = **1**
  157. - **COMPRESS_SOURCE_NORMAL** = **2**
  158. Description
  159. -----------
  160. Native image datatype. Contains image data, which can be converted to a texture, and several functions to interact with it.
  161. Member Function Description
  162. ---------------------------
  163. .. _class_Image_blend_rect:
  164. - void **blend_rect** **(** :ref:`Image<class_image>` src, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)**
  165. Alpha-blends a "src_rect" :ref:`Rect2<class_rect2>` from "src" :ref:`Image<class_image>` to this :ref:`Image<class_image>` on coordinates "dest".
  166. .. _class_Image_blend_rect_mask:
  167. - void **blend_rect_mask** **(** :ref:`Image<class_image>` src, :ref:`Image<class_image>` mask, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)**
  168. Alpha-blends a "src_rect" :ref:`Rect2<class_rect2>` from "src" :ref:`Image<class_image>` to this :ref:`Image<class_image>` using a "mask" :ref:`Image<class_image>` on coordinates "dest". Alpha channels are required for both "src" and "mask", dest pixels and src pixels will blend if the corresponding mask pixel's alpha value is not 0. "src" :ref:`Image<class_image>` and "mask" :ref:`Image<class_image>` \*must\* have the same size (width and height) but they can have different formats
  169. .. _class_Image_blit_rect:
  170. - void **blit_rect** **(** :ref:`Image<class_image>` src, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)**
  171. Copy a "src_rect" :ref:`Rect2<class_rect2>` from "src" :ref:`Image<class_image>` to this :ref:`Image<class_image>` on coordinates "dest".
  172. .. _class_Image_blit_rect_mask:
  173. - void **blit_rect_mask** **(** :ref:`Image<class_image>` src, :ref:`Image<class_image>` mask, :ref:`Rect2<class_rect2>` src_rect, :ref:`Vector2<class_vector2>` dst **)**
  174. Blits a "src_rect" :ref:`Rect2<class_rect2>` from "src" :ref:`Image<class_image>` to this :ref:`Image<class_image>` using a "mask" :ref:`Image<class_image>` on coordinates "dest". Alpha channel is required for "mask", will copy src pixel onto dest if the corresponding mask pixel's alpha value is not 0. "src" :ref:`Image<class_image>` and "mask" :ref:`Image<class_image>` \*must\* have the same size (width and height) but they can have different formats
  175. .. _class_Image_clear_mipmaps:
  176. - void **clear_mipmaps** **(** **)**
  177. .. _class_Image_compress:
  178. - :ref:`int<class_int>` **compress** **(** :ref:`int<class_int>` mode, :ref:`int<class_int>` source, :ref:`float<class_float>` lossy_quality **)**
  179. .. _class_Image_convert:
  180. - void **convert** **(** :ref:`int<class_int>` format **)**
  181. .. _class_Image_copy_from:
  182. - void **copy_from** **(** :ref:`Image<class_image>` src **)**
  183. .. _class_Image_create:
  184. - void **create** **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`bool<class_bool>` use_mipmaps, :ref:`int<class_int>` format **)**
  185. Create an empty image of a specific size and format.
  186. .. _class_Image_create_from_data:
  187. - void **create_from_data** **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`bool<class_bool>` use_mipmaps, :ref:`int<class_int>` format, :ref:`PoolByteArray<class_poolbytearray>` data **)**
  188. .. _class_Image_crop:
  189. - void **crop** **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height **)**
  190. .. _class_Image_decompress:
  191. - :ref:`int<class_int>` **decompress** **(** **)**
  192. .. _class_Image_detect_alpha:
  193. - :ref:`int<class_int>` **detect_alpha** **(** **)** const
  194. .. _class_Image_expand_x2_hq2x:
  195. - void **expand_x2_hq2x** **(** **)**
  196. .. _class_Image_fill:
  197. - void **fill** **(** :ref:`Color<class_color>` color **)**
  198. Fills an :ref:`Image<class_image>` with a specified :ref:`Color<class_color>`
  199. .. _class_Image_fix_alpha_edges:
  200. - void **fix_alpha_edges** **(** **)**
  201. .. _class_Image_flip_x:
  202. - void **flip_x** **(** **)**
  203. .. _class_Image_flip_y:
  204. - void **flip_y** **(** **)**
  205. .. _class_Image_generate_mipmaps:
  206. - :ref:`int<class_int>` **generate_mipmaps** **(** **)**
  207. .. _class_Image_get_data:
  208. - :ref:`PoolByteArray<class_poolbytearray>` **get_data** **(** **)** const
  209. Return the raw data of the :ref:`Image<class_image>`.
  210. .. _class_Image_get_format:
  211. - :ref:`int<class_int>` **get_format** **(** **)** const
  212. Return the format of the :ref:`Image<class_image>`, one of :ref:`Image<class_image>`.FORMAT\_\*.
  213. .. _class_Image_get_height:
  214. - :ref:`int<class_int>` **get_height** **(** **)** const
  215. Return the height of the :ref:`Image<class_image>`.
  216. .. _class_Image_get_mipmap_offset:
  217. - :ref:`int<class_int>` **get_mipmap_offset** **(** :ref:`int<class_int>` mipmap **)** const
  218. .. _class_Image_get_pixel:
  219. - :ref:`Color<class_color>` **get_pixel** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y **)** const
  220. .. _class_Image_get_rect:
  221. - :ref:`Image<class_image>` **get_rect** **(** :ref:`Rect2<class_rect2>` rect **)** const
  222. Return a new :ref:`Image<class_image>` that is a copy of "area" in this :ref:`Image<class_image>`.
  223. .. _class_Image_get_size:
  224. - :ref:`Vector2<class_vector2>` **get_size** **(** **)** const
  225. .. _class_Image_get_used_rect:
  226. - :ref:`Rect2<class_rect2>` **get_used_rect** **(** **)** const
  227. Return the area of this :ref:`Image<class_image>` that is used/visibly colored/opaque.
  228. .. _class_Image_get_width:
  229. - :ref:`int<class_int>` **get_width** **(** **)** const
  230. Return the width of the :ref:`Image<class_image>`.
  231. .. _class_Image_has_mipmaps:
  232. - :ref:`bool<class_bool>` **has_mipmaps** **(** **)** const
  233. .. _class_Image_is_compressed:
  234. - :ref:`bool<class_bool>` **is_compressed** **(** **)** const
  235. .. _class_Image_is_empty:
  236. - :ref:`bool<class_bool>` **is_empty** **(** **)** const
  237. .. _class_Image_is_invisible:
  238. - :ref:`bool<class_bool>` **is_invisible** **(** **)** const
  239. .. _class_Image_load:
  240. - :ref:`int<class_int>` **load** **(** :ref:`String<class_string>` path **)**
  241. Load an :ref:`Image<class_image>`.
  242. .. _class_Image_lock:
  243. - void **lock** **(** **)**
  244. .. _class_Image_normalmap_to_xy:
  245. - void **normalmap_to_xy** **(** **)**
  246. .. _class_Image_premultiply_alpha:
  247. - void **premultiply_alpha** **(** **)**
  248. .. _class_Image_resize:
  249. - void **resize** **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` interpolation=1 **)**
  250. .. _class_Image_resize_to_po2:
  251. - void **resize_to_po2** **(** :ref:`bool<class_bool>` square=false **)**
  252. .. _class_Image_save_png:
  253. - :ref:`int<class_int>` **save_png** **(** :ref:`String<class_string>` path **)** const
  254. Save this :ref:`Image<class_image>` as a png.
  255. .. _class_Image_set_pixel:
  256. - void **set_pixel** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`Color<class_color>` color **)**
  257. .. _class_Image_shrink_x2:
  258. - void **shrink_x2** **(** **)**
  259. .. _class_Image_srgb_to_linear:
  260. - void **srgb_to_linear** **(** **)**
  261. .. _class_Image_unlock:
  262. - void **unlock** **(** **)**