set_area_from_rgb_data
Description:
[ Version ( deprecated = true , deprecated_since = "1.12" , since = "0.6" ) ]
public bool set_area_from_rgb_data (uint8[] data, bool has_alpha, int x, int y, int width, int height, int rowstride, int bpp, TextureFlags flags) throws Error
public bool set_area_from_rgb_data (uint8[] data, bool has_alpha, int x, int y, int width, int height, int rowstride, int bpp, TextureFlags flags) throws Error
Warning: set_area_from_rgb_data is deprecated since 1.12.
Updates a sub-region of the pixel data in a Texture.
Parameters:
this |
A Texture |
data |
Image data in RGB type colorspace. |
has_alpha |
Set to TRUE if image data has an alpha channel. |
x |
X coordinate of upper left corner of region to update. |
y |
Y coordinate of upper left corner of region to update. |
width |
Width in pixels of region to update. |
height |
Height in pixels of region to update. |
rowstride |
Distance in bytes between row starts on source buffer. |
bpp |
bytes per pixel (Currently only 3 and 4 supported, depending on |
flags |
Returns:
|