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.

Dark GDK / Reading Pixel color

Author
Message
Poof Master
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location:
Posted: 15th Sep 2011 08:33
How would I go about reading the pixels of a sprite? I would like to do it in sections as well. For instance reading 20x20 pixels on the image and checking for a certain color. Anyone have some ideas on how to go about this or maybe a command that I can play with that is already built in.
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 15th Sep 2011 20:29
I would use dbMakeMemblockFromImage(...) to make a memblock and dbMemblockDword(....) to get the color of a specific pixil on the image.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-11-19 07:30:18
Your offset time is: 2024-11-19 07:30:18