1.在NET 类Bitmap类中图像遍历。
得到按点颜色 public Color GetPixel(int x, int y);
按点设定颜色public void SetPixel(int x, int y, Color color);
学习Bitmap类常用方法很重要。 这里感谢
“yingzhaom”翻译用下
名称 | 说明 | |
---|---|---|
![]() |
Bitmap(Image) | 从指定的现有图像初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Stream) | 从指定的数据流初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(String) | 从指定的文件初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Image, Size) | 从指定的现有图像(缩放到指定大小)初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Int32, Int32) | 用指定的大小初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Stream, Boolean) | 从指定的数据流初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(String, Boolean) | 从指定的文件初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Type, String) | 从指定的资源初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Image, Int32, Int32) | 从指定的现有图像(缩放到指定大小)初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Int32, Int32, Graphics) | 用指定的大小和指定的 Graphics 对象的分辨率初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Int32, Int32, PixelFormat) | 用指定的大小和格式初始化 Bitmap 类的新实例。 |
![]() |
Bitmap(Int32, Int32, Int32, PixelFormat, IntPtr) | 用指定的大小、像素格式和像素数据初始化 Bitmap 类的新实例。 |