X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc9c7c09bd464f9d0685df1660a3a810ce4cf5dc..2bf8e4ebcc9d52bcee96e69e7013279a4f2efa37:/docs/latex/wx/image.tex?ds=sidebyside diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 1366f12d04..bb30df8ff8 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -74,6 +74,9 @@ Loads an image from an input stream. \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP}}}{Load a Windows bitmap file.} \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_PNG}}}{Load a PNG bitmap file.} \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_JPEG}}}{Load a JPEG bitmap file.} +\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_GIF}}}{Load a GIF bitmap file.} +\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_PCX}}}{Load a PCX bitmap file.} +\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_PNM}}}{Load a PNM bitmap file.} \end{twocollist} The validity of these flags depends on the platform and wxWindows configuration. @@ -622,6 +625,20 @@ Gets the name of this handler. Gets the file extension associated with this handler. +\membersection{wxImageHandler::GetImageCount}\label{wximagehandlergetimagecount} + +\func{int}{GetImageCount}{\param{wxInputStream\&}{ stream}} + +If the image file contains more than one image and the image handler is capable +of retrieving these individually, this function will return the number of +available images. + +\docparam{stream}{Opened input stream for reading image file.} + +\wxheading{Return value} + +Number of available images. For most image handles, this defaults to 1. + \membersection{wxImageHandler::GetType} \constfunc{long}{GetType}{\void} @@ -636,16 +653,21 @@ Gets the MIME type associated with this handler. \membersection{wxImageHandler::LoadFile}\label{wximagehandlerloadfile} -\func{bool}{LoadFile}{\param{wxImage* }{image}, \param{wxInputStream\&}{ stream}} +\func{bool}{LoadFile}{\param{wxImage* }{image}, \param{wxInputStream\&}{ stream}, \param{bool}{ verbose=TRUE}, \param{int}{ index=0}} -Loads a image from a stream, putting the resulting data into {\it image}. +Loads a image from a stream, putting the resulting data into {\it image}. If the image file contains +more than one image and the image handler is capable of retrieving these individually, {\it index} +indicates which image to read from the stream. \wxheading{Parameters} \docparam{image}{The image object which is to be affected by this operation.} -\docparam{stream}{Opened input stream. -The meaning of {\it stream} is determined by the {\it type} parameter.} +\docparam{stream}{Opened input stream for reading images.} + +\docparam{verbose}{If set to TRUE, errors reported by the image handler will produce wxLogMessages.} + +\docparam{index}{The index of the image in the file (starting from zero).} \wxheading{Return value} @@ -667,7 +689,7 @@ Saves a image in the output stream. \docparam{image}{The image object which is to be affected by this operation.} -\docparam{stream}{A stream. The meaning of {\it stream} is determined by the {\it type} parameter.} +\docparam{stream}{An opened stream for writing images.} \wxheading{Return value}