Google I/OにてAndroid Studioが発表されました。 早速ダウンロードしてみるが、動かない。 インストールフォルダをしらべると binの下にstudio.batなるバッチファイルがあり、どうも環境変数 …
Tag: Windows
5月 15 2013
c#でアルファ合成
c#で透過Bitmapの合成はGraphicsのCompositingModeをSourceOverで使う。
1 2 3 4 5 6 |
Bitmap ImageWithAlpha; Bitmap backgroundImage; graphics g = Graphics.fromImage(backgroundImage); g.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver; g.DrawImage(ImageWithAlpha, 0, 0); |