Added ConvertToGreyscale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d059fe4a3c
commit
e054c6ad5c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user