Saturday, 15 September 2012

c# - I want to set the color of points that represent pixels inside a list -



c# - I want to set the color of points that represent pixels inside a list -

i have list contains points (x,y) image ( save pixel coordinates in list in form of x , y) thing want set color of these pixels. created new class pointpixel main atributes x,y didn't utilize default point class of c#.

so problem want access point straight within list ... don't utilize bitmap instance utilize method setpixel

some code examples great in advance

why not using 2d-array, each point of array corresponds coordinate of each pixel? basically, that's bitmap is.

also, if store coordinates, how going define color doesn't exist?

color[,] bitmap = new color[xdimension, ydimension](); bitmap[x, y] = new color(r, g, b);

is you're looking for?

c# image list analysis points

No comments:

Post a Comment