Do premultiplication in wx*PixelData_Iterator::Get and Set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,6 +161,7 @@ is returned if the pixel is invalid (on X, unallocated).", "");
|
||||
|
||||
|
||||
%extend {
|
||||
KeepGIL(Get);
|
||||
DocAStr(Get,
|
||||
"Get() -> (r, g, b)",
|
||||
"Returns the RGB intensity values as a tuple.", "");
|
||||
@@ -184,6 +185,7 @@ is returned if the pixel is invalid (on X, unallocated).", "");
|
||||
return rv;
|
||||
}
|
||||
|
||||
KeepGIL(GetRGB);
|
||||
DocStr(GetRGB,
|
||||
"Return the colour as a packed RGB value", "");
|
||||
unsigned long GetRGB() {
|
||||
|
Reference in New Issue
Block a user