将六张Png透明效果图片合成一张A4图片,速度慢,就解决方案!另外有帖子:http://topic.csdn.net/u/20100207/14/abbe92cb-ec11-4122-8091-e515cf09e5b1.html?47811
public void SetImage(){
this.s_image = new Bitmap(this.Body.Width, this.Body.Height);
Graphics g = Graphics.FromImage(this.s_image);
for (int i = 0; i < elements.Length; i++)
{
if (elements[i] != null)
{
if (i != 4)
{
g.DrawImage(elements[i], p_list.PointArray[i].X, p_list.PointArray[i].Y, this.Body.Width, this.Body.Height);
}
else
{
if (has_glassses)
{
g.DrawImage(elements[i], p_list.PointArray[i].X, p_list.PointArray[i].Y, this.Body.Width, this.Body.Height);
}
}
}
}
g.Dispose();
}
public void SetImage(){
this.s_image = new Bitmap(this.Body.Width, this.Body.Height);
Graphics g = Graphics.FromImage(this.s_image);
for (int i = 0; i < elements.Length; i++)
{
if (elements[i] != null)
{
if (i != 4)
{
g.DrawImage(elements[i], p_list.PointArray[i].X, p_list.PointArray[i].Y, this.Body.Width, this.Body.Height);
}
else
{
if (has_glassses)
{
g.DrawImage(elements[i], p_list.PointArray[i].X, p_list.PointArray[i].Y, this.Body.Width, this.Body.Height);
}
}
}
}
g.Dispose();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货