added support for saving grey and grey-red PNG images (patch 985447)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-27 15:24:50 +00:00
parent 04d4e6846e
commit a4efa72179
3 changed files with 156 additions and 33 deletions

View File

@@ -619,6 +619,22 @@ If the given option is not present, the function returns $0$. Use
\helpref{wxImage::HasOption}{wximagehasoption} is $0$ is a possibly valid value
for the option.
Options for wxPNGHandler
\twocolwidtha{5cm}%
\begin{twocollist}
\twocolitem{wxIMAGE\_OPTION\_PNG\_FORMAT}{Format for saving a PNG file.}
\twocolitem{wxIMAGE\_OPTION\_PNG\_BITDEPTH}{Bit depth for every channel (R/G/B/A).}
\end{twocollist}
Supported values for wxIMAGE\_OPTION\_PNG\_FORMAT:
\twocolwidtha{5cm}%
\begin{twocollist}
\twocolitem{wxPNG\_TYPE\_COLOUR}{Stores RGB image.}
\twocolitem{wxPNG\_TYPE\_GREY}{Stores grey image, converts from RGB.}
\twocolitem{wxPNG\_TYPE\_GREY\_RED}{Stores grey image, uses red value as grey.}
\end{twocollist}
\wxheading{See also}
\helpref{wxImage::SetOption}{wximagesetoption},\rtfsp