X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7261746aaee31b5beb31b5cc3fb4248c505b74d1..a124f99a24fb1f2ef41e37223ea35bcc9a4eece9:/docs/latex/wx/image.tex diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index bd9b723e0e..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}}