forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_image
reduz edited this page Feb 23, 2014
·
12 revisions
Image datatype.
- void ** blit_rect ** ( Image src, Rect2 src_rect, Vector2 dest=0 )
- void ** brush_transfer ** ( Image src, Image brush, Vector2 pos=0 )
- Image ** brushed ** ( Image src, Image brush, Vector2 pos=0 )
- Image ** compressed ** ( int format=0 )
- bool ** empty ** ( )
- RawArray ** get_data ** ( )
- int ** get_format ** ( )
- int ** get_height ** ( )
- Color ** get_pixel ** ( int x, int y, int mipmap_level=0 )
- Image ** get_rect ** ( Rect2 area=0 )
- Rect2 ** get_used_rect ** ( )
- int ** get_width ** ( )
- int ** load ** ( String path=0 )
- Image ** resized ** ( int x, int y, int interpolation=1 )
- COMPRESS_BC = 0
- COMPRESS_PVRTC2 = 1
- COMPRESS_PVRTC4 = 2
- COMPRESS_ETC = 3
- FORMAT_GRAYSCALE = 0
- FORMAT_INTENSITY = 1
- FORMAT_GRAYSCALE_ALPHA = 2
- FORMAT_RGB = 3
- FORMAT_RGBA = 4
- FORMAT_INDEXED = 5
- FORMAT_INDEXED_ALPHA = 6
- FORMAT_YUV_422 = 7
- FORMAT_YUV_444 = 8
- FORMAT_BC1 = 9
- FORMAT_BC2 = 10
- FORMAT_BC3 = 11
- FORMAT_BC4 = 12
- FORMAT_BC5 = 13
- FORMAT_PVRTC2 = 14
- FORMAT_PVRTC2_ALPHA = 15
- FORMAT_PVRTC4 = 16
- FORMAT_PVRTC4_ALPHA = 17
- FORMAT_ETC = 18
- FORMAT_CUSTOM = 19
Built in native image datatype. Contains image data, which can be converted to a texture, and several functions to interact with it.