作者:爱看好电影110_275 | 来源:互联网 | 2023-09-25 16:37
ImtryingtogetthepixelinformationfromanimageandhavegottothepointwhereIhavemyvoid
I'm trying to get the pixel information from an image and have got to the point where I have my void*
data object which is a pointer to the image data.
我正在尝试从图像中获取像素信息,并且已经达到了我的void * data对象的位置,该对象是指向图像数据的指针。
What exactly is this object? I've tried iterating over it hoping that it's an array of pixel info but it doesn't seem to work.
这个对象究竟是什么?我试过迭代它希望它是一个像素信息数组但它似乎不起作用。
I want to get the rgb values for each pixel.
我想获得每个像素的rgb值。
1 个解决方案