我使用的是.NET 2.0中C#中,我想读一个PNG图像文件,并检查第一行和第一列具有非透明像素。
I'm using C# in .Net 2.0, and I want to read in a PNG image file and check for the first row and first column that has non-transparent pixels.
我应该使用什么装配和/或类?
What assembly and/or class should I use?
位图从System.Drawing.dll程序组件类:
Bitmap class from System.Drawing.dll assembly:
Bitmap bitmap = new Bitmap(@"C:\image.png");
Color clr = bitmap.GetPixel(0, 0);