读取PNG图像文件的.Net 2.0 [英] Reading a PNG image file in .Net 2.0
本文介绍了读取PNG图像文件的.Net 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是.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?
推荐答案
Bitmap class from System.Drawing.dll assembly:
Bitmap bitmap = new Bitmap(@"C:\image.png");
Color clr = bitmap.GetPixel(0, 0);
这篇关于读取PNG图像文件的.Net 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文