画像のマスク処理についてStack Overflowで興味深い質問が上がっていたので紹介します。 Any idea why this image masking code does not work? - Stack Overflow http://stackoverflow.com/questions/1133248/any-idea-why-this-image-masking-code-does-not-work 「画像にマスク処理をしたが綺麗にマスク出来ない、何か良いアイディア無い?」という質問。 自分でもこのコードで試してみました。画像ファイルとしては以下のものを準備しました。 背景にこの画像(bg.png) ベースの画像に24bitと32bitのこちらの画像 24bitの画像(coloredImagePNG24.png) 32bitの画像(coloredImagePNG32.p
![画像が綺麗にマスクされないときの対処法 - 強火で進め](https://cdn-ak-scissors.b.st-hatena.com/image/square/2fcc13f3a40e8c4d149e2f3ed67e16d33418cd6f/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fn%2Fnakamura001%2F20100907%2F20100907002359.png)