HBITMAP grrrrrrrrrr... HELP!

Started by
17 comments, last by kalash 20 years, 1 month ago
hehehehe, no i am not trying to make tetris, i want at run-time to read a bitmap and process it''s pixels (i.e. apply so image processing algorithms) and then later have it again in the game...

I just want somebody to help me get a pointer to the first byte of pixels data.

Advertisement
PhilVaz,

i am using LR_LOADFROMFILE :-p
Did u load my program in a project and tried to execute it ?
can u help just print out a few pixel values (0-255,rgb).
Hi kalash,

Take a look at the bitmap loading part of my ASCII renderer - probably as simple as you''ll find

I.

www.coldcity.com
code, pics, life
[size="2"]www.coldcity.com code, art, life
Cheers mate, i am looking at it now it will surely help a lot :-)
kalash,

If you like I can extend it so that it puts all the pixel data in a char array and you have PutPixel(x, y, colour) and GetPixel (x, y, colour) functions - is that what you need?

If so let me know ASAP and I''ll sort it.

I.

www.coldcity.com
code, pics, life
[size="2"]www.coldcity.com code, art, life
I did it anyway - check yr email

Hope it helps...

I.

www.coldcity.com
code, pics, life
[size="2"]www.coldcity.com code, art, life
I just came back, had a few beers here in Manchester, checked my email and wow... i am looking at it now, my night is just about to begin... oh these 3rd year projects

I write you back by email mate, thanks so much.

take care
Oh mate you chewed all the code for me, wow ABSOLUTELY COOL... i dont know how to thank you, check your email
i can send you a tool ("Raw2Code"), which converts arbitrary RAW-files (e.g. from PaintShop) to CPP-unsigned char arrays, if you are interested.

DJSnow
---
this post is manually created and therefore legally valid without a signature
DJSnow---this post is manually created and therefore legally valid without a signature

This topic is closed to new replies.

Advertisement