X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce045aed585af0f00b72f1cdba893b47ac2e0e55..3affcd078b1dc6d92cd06f18b5cc4c41a33161ea:/docs/latex/wx/image.tex diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 181a074db6..88068a73d4 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -304,6 +304,16 @@ Deprecated, use equivalent \helpref{wxBitmap constructor}{wxbitmapctor} (which takes wxImage and depth as its arguments) instead. +\membersection{wxImage::ConvertToGreyscale}\label{wximageconverttogreyscale} + +\constfunc{wxImage}{ConvertToGreyscale}{\param{double}{ lr = 0.299}, \param{double}{ lg = 0.587}, \param{double}{ lb = 0.114}} + +Returns a greyscale version of the image. The returned image uses the luminance +component of the original to calculate the greyscale. Defaults to using +ITU-T BT.601 when converting to YUV, where every pixel equals +(R * {\it lr}) + (G * {\it lg}) + (B * {\it lb}). + + \membersection{wxImage::ConvertToMono}\label{wxbitmapconverttomono} \constfunc{wxImage}{ConvertToMono}{\param{unsigned char}{ r}, \param{unsigned char}{ g}, \param{unsigned char}{ b}} @@ -1099,7 +1109,7 @@ the function will allocate the alpha array internally -- this is useful to add alpha channel data to an image which doesn't have any. If the pointer is not {\tt NULL}, it must have one byte for each image pixel and be allocated with {\tt malloc()}. wxImage takes ownership of the pointer and will free it unless -\arg{static\_data} parameter is set.to \true -- in this case the caller should +\arg{static\_data} parameter is set to \true -- in this case the caller should do it. \func{void}{SetAlpha}{\param{int }{x}, \param{int }{y}, \param{unsigned char }{alpha}}