我正在尝试缩小包含透明度的位图。不幸的是,我尝试过的所有三种方法都是白色的,而那里应该是完全透明的。我想保持透明度。我缩放的位图总是正方形的,所以我的函数假定: int factor =g = new Graphics(val);
int[] pathX = new int[] {0, 0+edge,
你会用哪一个在winform上画东西?是Format32bppRgb还是Format24bppRgb还是别的什么?
Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components.
Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green, and blue co
我有一个从安卓的DrawingView发送到WCF服务的PNG图像。图像以32位格式发送,背景透明。我想用白色代替透明的颜色(因为没有更好的词)。到目前为止,我的代码如下所示:Bitmap i = new Bitmap(new MemoryStream(Convert.FromBase64String我注意到,在Paint.NET中,您可以简单地将PNG格式设置为8位,它会将