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 Professional Discussion / Make Image From Memblock help

Author
Message
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 9th Sep 2011 00:11 Edited at: 9th Sep 2011 00:57
I saw something the other day but now I cannot find it for the life of me. I need to read pixel information from a memblock created from an image but I don't know the offsets if anyone can help...

EDIT: Ignore now because I got around it using bitmaps instead.

Warning! May contain Nuts!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Sep 2011 02:47
I know you said ignore it but if people use the search option they may find this message with no help in it... so here's a link that'll explain how to use memblocks.

http://www.binarymodular.com/main/articles.php?cat_id=30

WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 9th Sep 2011 03:04
Thanks Grog, that will actually come in handy for when I convert my DBP code over to C++...

Warning! May contain Nuts!
Booma
17
Years of Service
User Offline
Joined: 29th Mar 2009
Location:
Posted: 9th Sep 2011 14:46 Edited at: 9th Sep 2011 15:08
For 32bit color you can use



Login to post a reply

Server time is: 2026-07-11 14:37:13
Your offset time is: 2026-07-11 14:37:13