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:
Robin Dunn
2006-08-27 00:46:22 +00:00
parent c7b2e4941f
commit c4caf81dbc
2 changed files with 54 additions and 40 deletions

View File

@@ -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() {