Asfianda / agk

Automatically exported from code.google.com/p/agk
0 stars 0 forks source link

SetImageMask partly works - copying alpha channel fails ? #660

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is an example in HandsOnAGK (Fig 16.22) where two pngs are loaded and the 
second one (a jigsaw shape) is used as a mask for the first (a picture).

When using SetImageMask to copy the alpha channel from the jigsaw shape to the 
picture it does not seem to work - copying other channels seems fine,and doing 
it the other way round - starting with the jigsaw and copying the RGB channels 
from the picture seems to work okay.

Original issue reported on code.google.com by paulscot...@gmail.com on 8 Dec 2014 at 1:59

GoogleCodeExporter commented 8 years ago
Can you post the code used to replicate the bug?

Original comment by P.S.John...@gmail.com on 3 Feb 2015 at 6:57

GoogleCodeExporter commented 8 years ago
There's a demo at http://www.studio2.org.uk/alphacopybug.zip

Original comment by paulscot...@gmail.com on 3 Feb 2015 at 9:44

GoogleCodeExporter commented 8 years ago
Note ; behaves the same on iOS Broadcast player (a11) and Android (a10 not yet 
updated)

Original comment by paulscot...@gmail.com on 3 Feb 2015 at 10:01