0

I do not know how pixels are represented? suppose I want to read an image pixel by pixel what type of object I can use to read the pixel's data within it and how to read the image pixel by pixel?

3
Contributors
4
Replies
29
Views
4 Years
Discussion Span
Last Post by ddanbe
0

A pixel is the smallest thing that a image contains it can be a dot, square, line ect... If you want to read pixels from a image you ve got several methods in the bitmap class. I suggest you to use 2 for loops and go through each pixel (image cell) and do whatever you want to do. A image is actually a matrix with columns and rows (height,width) for example if you ve got 64 "rows" and 64 "columns" you would have 64^2 pixels in your image. Just don t think about the pixels as something physical, it doesn t have a native size. You can use the Color struct as an object to put data inside of it. The data would be then Argb data. The Argb value will depend upon the image pixels colors.

0

Is the pixel represented as a 3 bytes in memory one byte for each color of red, black and green?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.