set_from_rgb_data


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "0.4" ) ]
public bool set_from_rgb_data (uint8[] data, bool has_alpha, int width, int height, int rowstride, int bpp, TextureFlags flags) throws Error

Warning: set_from_rgb_data is deprecated since 1.12.

Sets Texture image data.

Note:

Use Image and set_data instead

Parameters:

this

a Texture

data

image data in RGBA type colorspace.

has_alpha

set to true if image data has an alpha channel.

width

width in pixels of image data.

height

height in pixels of image data

rowstride

distance in bytes between row starts.

bpp

bytes per pixel (currently only 3 and 4 supported, depending on the value of has_alpha)

flags

TextureFlags

Returns:

true on success, false on failure.