From d6d29abb44ccfabdd071741a8a4623ea02f470b8 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 28 Aug 2011 22:06:46 +0000 Subject: [PATCH] Updated manual regarding image alpha support for TGA handler. TGA was not mentioned in the list of formats supporting loading of alpha, but alpha loading support has been available since r42644. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/wx/image.h b/interface/wx/image.h index 88175ba..c7eb773 100644 --- a/interface/wx/image.h +++ b/interface/wx/image.h @@ -342,7 +342,7 @@ const unsigned char wxIMAGE_ALPHA_OPAQUE = 0xff; While all images have RGB data, not all images have an alpha channel. Before using wxImage::GetAlpha you should check if this image contains an alpha - channel with wxImage::HasAlpha. Currently the BMP, PNG, and TIFF format + channel with wxImage::HasAlpha. Currently the BMP, PNG, TGA, and TIFF format handlers have full alpha channel support for loading so if you want to use alpha you have to use one of these formats. If you initialize the image alpha channel yourself using wxImage::SetAlpha, you should save it in -- 2.7.4