Added ConvertToGreyscale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -873,6 +873,14 @@ indicates the orientation.", "");
|
|||||||
"Replaces the colour specified by ``(r1,g1,b1)`` by the colour
|
"Replaces the colour specified by ``(r1,g1,b1)`` by the colour
|
||||||
``(r2,g2,b2)``.", "");
|
``(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(
|
DocDeclStr(
|
||||||
wxImage , ConvertToMono( byte r, byte g, byte b ) const,
|
wxImage , ConvertToMono( byte r, byte g, byte b ) const,
|
||||||
|
Reference in New Issue
Block a user