From 8727a1fe6f530b33829384c052484238c5e06e54 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Fri, 21 Jan 2000 05:56:25 +0000 Subject: [PATCH] Some things added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/function.tex | 4 ++-- docs/latex/wx/image.tex | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 8e94b4ddec..507e0339f3 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -146,8 +146,8 @@ Returns the Windows directory under Windows; on other platforms returns the empt Adds some common image format handlers, which, depending on wxWindows configuration, can be handlers for BMP (loading) (always installed), GIF -(loading), PCX (loading), PNM (loading and saving as raw -rgb), PNG (loading and saving), JPEG (loading and saving), file formats. +(loading), PCX (loading and saving), PNM (loading and saving as raw rgb), +PNG (loading and saving), JPEG (loading and saving), file formats. \wxheading{See also} diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 87ead917f6..26c445a4da 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -14,6 +14,30 @@ be drawn in a device context, using \helpref{wxDC::DrawBitmap}{wxdcdrawbitmap}. One colour value of the image may be used as a mask colour which will lead to the automatic creation of a \helpref{wxMask}{wxmask} object associated to the bitmap object. +\wxheading{Available image handlers} + +The following image handlers are available. {\bf wxBMPHandler} is always +installed by default. To use other image formats, install the appropiate +handler with \helpref{wxImage::AddHandler}{wximageaddhandler} or +\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}. + +\twocolwidtha{5cm}% +\begin{twocollist} +\twocolitem{{\bf \indexit{wxBMPHandler}}}{Only for loading, always installed.} +\twocolitem{{\bf \indexit{wxPNGHandler}}}{For loading and saving.} +\twocolitem{{\bf \indexit{wxJPEGHandler}}}{For loading and saving.} +\twocolitem{{\bf \indexit{wxGIFHandler}}}{Only for loading, due to legal issues.} +\twocolitem{{\bf \indexit{wxPCXHandler}}}{For loading and saving (see below).} +\twocolitem{{\bf \indexit{wxPNMHandler}}}{For loading and saving (see below).} +\end{twocollist} + +When saving in PCX format, {\bf wxPCXHandler} will count the number of +different colours in the image; if there are 256 or less colours, it will +save as 8 bit, else it will save as 24 bit. + +Loading PNMs only works for ASCII or raw RGB images. When saving in +PNM format, {\bf wxPNMHandler} will always save as raw RGB. + \wxheading{Derived from} \helpref{wxObject}{wxobject} -- 2.45.2