X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e5437e00bb1e42d24060e6115d2e6a042c1a93f..80d2803f703d1b238f42725504f08266ef02defe:/docs/latex/wx/image.tex diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index f8efd1e724..84f08f2df6 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -187,6 +187,10 @@ on program start-up to look up colors. This ensures a very fast conversion, but the image quality won't be perfect (and could be better for photo images using more sophisticated dithering algorithms). +On Windows, if there is a palette present (set with SetPalette), it will be used when +creating the wxBitmap (most useful in 8-bit display mode). On other platforms, +the palette is currently ignored. + \membersection{wxImage::Copy}\label{wximagecopy} \constfunc{wxImage}{Copy}{\void} @@ -309,6 +313,15 @@ Gets the green value of the mask colour. Gets the red value of the mask colour. +\membersection{wxImage::GetPalette}\label{wximagegetpalette} + +\constfunc{const wxPalette\&}{GetPalette}{\void} + +Returns the palette associated with the image. Currently the palette is only +used in ConvertToBitmap under Windows. + +Eventually wxImage handlers will set the palette if one exists in the image file. + \membersection{wxImage::GetSubImage}\label{wximagegetsubimage} \constfunc{wxImage}{GetSubImage}{\param{const wxRect\&}{ rect}} @@ -653,6 +666,13 @@ used, which is a number between 0 and 100 (0 is terrible, 100 is very good). \helpref{wxImage::GetOptionInt}{wximagegetoptionint},\rtfsp \helpref{wxImage::HasOption}{wximagehasoption} +\membersection{wxImage::SetPalette}\label{wximagesetpalette} + +\func{void}{SetPalette}{\param{const wxPalette\&}{ palette}} + +Associates a palette with the image. The palette may be used in ConvertToBitmap (MSW only at present) +or in file save operations (none as yet). + \membersection{wxImage::SetRGB}\label{wximagesetrgb} \func{void}{SetRGB}{\param{int }{x}, \param{int }{y}, \param{unsigned char }{red}, \param{unsigned char }{green}, \param{unsigned char }{blue}}