wxImage and raw data
Vadim Zeitlin
vadim at wxwidgets.org
Tue Oct 2 10:36:02 PDT 2007
On Tue, 2 Oct 2007 19:15:48 +0200 Yaron Tadmor <YaronT at HumanEyes.com> wrote:
YT> Assuming I have some RGBA or ARGB data, how can I create an image from
YT> it? Or more specifically, what is the type of data the raw image data
YT> c-tor of wxImage expects?
It expects RGB data. Alpha channel is stored separately due to the history
of this class. One day maybe someone will make it possible to store it
together with the colour...
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list