Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / make memblock from bitmap

Author
Message
EightYearRecoil
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: United States
Posted: 9th Apr 2003 01:25
I was wondering if anyone could tell me a good way to get specific coordinates from a memblock. I would like to use it to check for certain colors. I know the header is 12 bytes, and I believe the pixel data is 2 bytes each, but I can't figure a way to call specific pixels. Any help or direction to help I get would be greatly appreciated. Thanks

Eight Year Recoil
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 01:59
Pixel data is 4 bytes (a DWORD). You ought to download and read Tutorial 9 because it has a section on "translating from screen X,Y coordinates to MemBlock locations" which sounds kinda right up your street, no?

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
EightYearRecoil
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: United States
Posted: 9th Apr 2003 02:06
That is probably exactly what I need. The only question is where can I get Tutorial 9?
Thanks a million

Eight Year Recoil

Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 02:08
It's actually a DBPro Tutorial available from this site (see the link on the home page) but the explanation inside should apply to any memblock.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming

Login to post a reply

Server time is: 2026-06-11 15:09:02
Your offset time is: 2026-06-11 15:09:02