]> git.saurik.com Git - wxWidgets.git/commitdiff
Added ConvertToGreyscale
authorRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 17:23:02 +0000 (17:23 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 17:23:02 +0000 (17:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_image.i

index bc320ba24d80558b02b6b97f5c75fd0cd0454927..e879cb3b657beb7bf17049c21a72c000f4232781 100644 (file)
@@ -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(