i fixed it here's what ive got, and ya im getting the pixel values of an image in a browser
int x,y,pixel=-1,wpix,offset;
unsigned char pixels[30][100];
unsigned int r,g,b;
HDC hdc =...
Type: Posts; User: Muzzy A
i fixed it here's what ive got, and ya im getting the pixel values of an image in a browser
int x,y,pixel=-1,wpix,offset;
unsigned char pixels[30][100];
unsigned int r,g,b;
HDC hdc =...
ah ok i see your point, i'll give it a shot.
that does the GetPixel() function doesnt it?
its the same thing with that to :S maybe if you all look at my code something may catch your eye that im doing wrong lol.
int x,y,SX=347,SY=375;
unsigned char pixels[30][100];
unsigned int...
[EDIT] sorry for the double post
0xffffff
it doesnt work, neither does
0x000000
for black
and for some reason r g b are all getting the value 255 every time no matter what.
do you know what could cause this?
ok so if i wanted to check if a pixel is white, what would i have to do? I dont understand the numbers GetPixel returns. Like "13026246" - its not enough numbers to be an RGB value and "4294967295"...
ok i got it, i didnt need to put it in the project properties, i had to put it where swoopy specified
What's the difference between C and C#? I had always thought it was the same language until about a month ago when i saw someone asking which they should program in.
I already had that there but it was "gdi32.lib" and it comes with this exact error
C:\Dev-Cpp\Makefile.win [Build Error] ["HTS] Error 1
and its the same when i take .lib off
I'm using dev c++ and i dont really know what the ide is, i think its mingw/gcc or something like that
Did you learn c++ in highschool or college? I learned java in highschool, well actually a tradeschool but it was while i was in highschool lol
I chose c++ because its more flexible than java, you can do more with c++, though it may be more confusing i still prefer it, plus i love dealing with confusing stuff lol. I still program in java...
now it says build error and thats it
ok i finally found an article that's sort of about GetPixel(), and this is what it had in the example:
int x,y;
unsigned char pixels[30][100];
HDC hdc = GetDC(NULL);
...
no, like what to include in order to use it, and do i have to do anything else to use it as well?
I have no clue how this function is used, i only know its parameters. Can anyone tell me how its supposed to be implemented? I've searched all kinds of places to figure it out but i cant find...