555连版主也不知道啊~~~
兄弟们多来帮帮忙啊!!!~~~
//给版主解释一下镂空:
public static Bitmap Draw镂空(Bitmap background,Bitmap image,Point point,Size size,Color color)
{
Bitmap Save = (Bitmap)background.Clone();
background = null;
background = Save;
if(image.Width!=size.Width&&image.Height!=size.Height)
{
image =GetSizeImage(image,size);
}
for(int x=0;x<size.Width;x++)
{
for(int y=0;y<size.Height;y++)
{
if(CompareColor(image.GetPixel(x,y),color))
continue;
background.SetPixel(point.X+x,point.Y+y,image.GetPixel(x,y));
}
}
return background;
}
看了这段代码应该明白什么是镂空了吧?就相当于去掉“画图”里的不透明处理~~
同志们来帮忙啊!!!