首页  编辑  

Bitmap透明绘制

Tags: /C#/图形图像/   Date Created:

Bitmap vBitmapBack = new Bitmap ( @"c:\temp\1.bmp" );

Bitmap vBitmapFace = new Bitmap ( @"c:\temp\2.bmp" );

Graphics vGraphics = Graphics . FromImage(vBitmapBack);

vBitmapFace . MakeTransparent( Color . Fuchsia);

vGraphics . DrawImage(vBitmapFace, new Point ( 10 , 10 ));

vBitmapBack . Save( @"c:\temp\3.bmp" );