[ wxwindows-Bugs-1831612 ] wxImage::Paste doesn't paste Alpha channel

SourceForge.net noreply at sourceforge.net
Sat Feb 9 07:31:52 PST 2008


Bugs item #1831612, was opened at 2007-11-14 08:44
Message generated for change (Comment added) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1831612&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxImage
Group: Must fix
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Steven Van Ingelgem (g00fy)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxImage::Paste doesn't paste Alpha channel

Initial Comment:
I just came across the fact that when you "Resize" an image, the places where it is transparent (not mask, but alpha), it's not getting copied at all. This resorts back to the "Paste" function not copying
the Alpha channel.
The mask is being copied correctly though.

----------------------------------------------------------------------

>Comment By: Vadim Zeitlin (vadz)
Date: 2008-02-09 16:31

Message:
Logged In: YES 
user_id=71618
Originator: NO

Fixed in both current svn branches, will be fixed in 2.8.8 and 2.9.0,
thanks for the patch

----------------------------------------------------------------------

Comment By: Steven Van Ingelgem (g00fy)
Date: 2007-11-22 14:15

Message:
Logged In: YES 
user_id=569271
Originator: YES

Hi,


I submitted a bug report once about wxImage::Paste not copying the
alpha channel. As I really needed it, I took some time to fix this
myself, resulting in the attached patch.

Could someone check if this work as intended (I checked it in the
image sample, and it works).


Maybe this will solve a lot of issues with black backgrounds in
images, but about that, I'm not sure...


Greetings,
Steven
File Added: image_paste.patch

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1831612&group_id=9863




More information about the wx-dev mailing list