I tried Googling for this but am coming up short. Just curious: is
there a fairly simple way to take a bitmap and change the color of it
just with Python/wxPython? (something like changing the color balance
with The GIMP). This would take, e.g., a mostly blue toned image and
make it yellowish or whatever.
(I could just do this with GIMP and use a 2nd image, but I thought if
it is not too hard to do with wxPython it would help cut down on the
size of the application.)
There is a sample in the demo that shows this, look for AdjustChannels. Hmm... it doesn't seem to have been added to the 2.9 demo yet, so if that's what you've got then you can get it from the 2.8 demo code in the source repository here: wxTrac has been migrated to GitHub Issues - wxWidgets
···
On 6/13/12 8:45 PM, C M wrote:
I tried Googling for this but am coming up short. Just curious: is
there a fairly simple way to take a bitmap and change the color of it
just with Python/wxPython? (something like changing the color balance
with The GIMP). This would take, e.g., a mostly blue toned image and
make it yellowish or whatever.
(I could just do this with GIMP and use a 2nd image, but I thought if
it is not too hard to do with wxPython it would help cut down on the
size of the application.)
I tried Googling for this but am coming up short. Just curious: is
there a fairly simple way to take a bitmap and change the color of it
just with Python/wxPython?
There is a sample in the demo that shows this, look for AdjustChannels.
Well that couldn't have been handier. Great utility, and thanks.
I tried Googling for this but am coming up short. Just curious: is
there a fairly simple way to take a bitmap and change the color of it
just with Python/wxPython? (something like changing the color balance
with The GIMP). This would take, e.g., a mostly blue toned image and
make it yellowish or whatever.
No. That's just not what wx was designed to do. You can certainly use
PIL (Python Imaging Library) to do that, and I believe several parts of
wx know how to handle a PIL image.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.