From e0cb07e37666cddac90e3e9fc52f7ed416ae69cd Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 21 Feb 2005 02:13:25 +0000 Subject: [PATCH] reworded parts of the 'alpha channel support' paragraph git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/image.tex | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 498e1f510d..ab00bf5d0f 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -19,17 +19,16 @@ creation of a \helpref{wxMask}{wxmask} object associated to the bitmap object. Starting from wxWidgets 2.5.0 wxImage supports alpha channel data, that is in addition to a byte for the red, green and blue colour components for each pixel -it also stores a byte representing the pixel opacity. The alpha value of $0$ -corresponds to a transparent pixel (null opacity) while the value of $255$ +it also stores a byte representing the pixel opacity. An alpha value of $0$ +corresponds to a transparent pixel (null opacity) while a value of $255$ means that the pixel is 100\% opaque. -Unlike the RGB data, not all images have the alpha channel and before using +Unlike RGB data, not all images have an alpha channel and before using \helpref{GetAlpha}{wximagegetalpha} you should check if this image contains -alpha value with \helpref{HasAlpha}{wximagehasalpha}. In fact, currently only -images loaded from PNG files with transparency information will have alpha -channel but support for it will be added to the other formats as well (as well -as support for saving images with alpha channel which is not still implemented -either). +an alpha channel with \helpref{HasAlpha}{wximagehasalpha}. Note that currently only +images loaded from PNG files with transparency information will have an alpha +channel but alpha support will be added to the other formats as well (as well +as support for saving images with alpha channel which also isn't implemented). \wxheading{Available image handlers} -- 2.45.2