|
-
Jun 9th, 2012, 08:16 AM
#1
Thread Starter
Addicted Member
Bitmap image in 2D array
Hello, guys I am trying to turn a bitmap image into 2D array .
This is my bitmap image:

I want to represent each white pixel inside the array with 1 and each black pixel with 0,but I need only pure white and pure black
And then redraw it , any ideas ?
-
Jun 9th, 2012, 11:19 AM
#2
Thread Starter
Addicted Member
Re: Bitmap image in 2D array
-
Jun 11th, 2012, 08:12 PM
#3
Hyperactive Member
Re: Bitmap image in 2D array
 Originally Posted by mitko29
Anyone ?
do you only need a bool indicator? like
pos1 isblack = false //means its white
pos2 isblack = true //means its black
?
if thats what you need then i think the easiest solution is to create a List<List<bool>> imagearraycheck
so you will have an example like this:
imagearraycheck[0][3] = true;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|