X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff865c132a61e615bb7a157cd314d7f7428374a3..f363e05c6d7d29ac152c86b526e25b983d05eea5:/docs/latex/wx/image.tex diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 77cc3231c7..378663ced1 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -29,7 +29,7 @@ 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 -neither). +either). \wxheading{Available image handlers} @@ -355,6 +355,29 @@ A pointer to the handler if found, NULL otherwise. \helpref{wxImageHandler}{wximagehandler} +\membersection{wxImage::GetImageExtWildcard} + +\func{static wxString}{GetImageExtWildcard}{\void} + +Iterates all registered wxImageHandler objects, and returns a string containing file extension masks +suitable for passing to file open/save dialog boxes. + +\wxheading{Return value} + +The format of the returned string is "(*.ext1;*.ext2)|*.ext1;*.ext2". + +It is usually a good idea to prepend a description before passing the result to the dialog. + +Example: + +\begin{verbatim} + wxFileDialog FileDlg( this, "Choose Image", ::wxGetWorkingDirectory(), "", _("Image Files ") + wxImage::GetImageExtWildcard(), wxOPEN ); +\end{verbatim} + +\wxheading{See also} + +\helpref{wxImageHandler}{wximagehandler} + \membersection{wxImage::GetAlpha}\label{wximagegetalpha} \constfunc{unsigned char}{GetAlpha}{\param{int}{ x}, \param{int}{ y}}