wxImage and raw data

Robert Roebling robert at roebling.de
Tue Oct 2 12:55:35 PDT 2007


Yaron Tadmor wrote:

> Assuming I have some RGBA or ARGB data, how can I create an image
> from it? Or more specifically, what is the type of data the raw
> image data c-tor of wxImage expects?

There is a constructor taking a pointer to RGB data and
an A channel separately.
wxImage(int width, int height, 
        unsigned char* data, unsigned char* alpha,
        bool static_data = false);

  Robert






More information about the wx-users mailing list