如何从c#中的图像中获取具有高度和宽度的像素的int数组 [英] How to get a int array of pixels with height and width from image in c#

查看:216
本文介绍了如何从c#中的图像中获取具有高度和宽度的像素的int数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有base64我已经把它变成了一个图像现在我想要一个像素的int数组

i have base64 i have conerted it into a image now i want a int array of pixels

推荐答案

如果你有数据作为图像,那么它是微不足道的获取大小 - Image类的Width和Height属性将为您完成。



至于2D数组中像素的图像数据,请参见此处: http://stackoverflow.com / questions / 10127871 / how-can-i-read-image-pixels-values-as-rgb-into-2d-array [ ^ ]
If you have the data as an Image, then it's trivial to get the size - the Width and Height properties of the Image class will do that for you.

As for the image data as pixels in a 2D array, see here: http://stackoverflow.com/questions/10127871/how-can-i-read-image-pixels-values-as-rgb-into-2d-array[^]


这篇关于如何从c#中的图像中获取具有高度和宽度的像素的int数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆