From: Robin Dunn <robin@alldunn.com> Date: Fri, 20 Jan 2006 17:23:02 +0000 (+0000) Subject: Added ConvertToGreyscale X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e054c6ad5c0c58c80812578c4b0fbd10678a96ee Added ConvertToGreyscale git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index bc320ba24d..e879cb3b65 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -872,6 +872,14 @@ indicates the orientation.", ""); byte r2, byte g2, byte b2 ), "Replaces the colour specified by ``(r1,g1,b1)`` by the colour ``(r2,g2,b2)``.", ""); + + DocDeclStr( + wxImage , ConvertToGreyscale( double lr = 0.299, + double lg = 0.587, + double lb = 0.114 ) const, + "Convert to greyscale image. Uses the luminance component (Y) of the +image. The luma value (YUV) is calculated using (R * lr) + (G * lg) + (B * lb), +defaults to ITU-T BT.601", ""); DocDeclStr(