Well, there is no real pre-built in function to do that, but you could do something like this, to start out:
int spriteX = dbSpriteX(spriteID);
int spriteY = dbSpriteY(spriteID);
for (int y = 0 + spriteY; y < dbSpriteHeight(spriteID) + spriteY; y++) {
for (int x = 0 + spriteX; x < dbSpriteWidth(spriteId) + spriteX; x++) {
// something here
}
}
I'm away from the documentation right now, so I can't really do much to help other then this. Though I do think you may need to use mem-blocks.
Question:
Are you trying to create a pixel perfect collision system?
http://www.darkgdk.us/ <- You can now submit pages, upload images, yet were lacking content. We need your help!