Skip to main content
gamedev.net
🔒 Locked

Accessing bitmap pixels

Started by Carradine Apr 11, 2005 at 9:30 PM 0 replies 250+ views
Original Post
Carradine
Carradine
I figured this is probably more of a general programming question. I am creating some images (BMP, TGAs ) that I will only need to access some color values from pixels every so often from my program. I have been trying to find the most effective way to do this, but I am still unsure. I can attempt to use the GDI calls, but I would like to try and avoid that. I can use the simple task of of just loading the BMP file and parsing through it. I would like to see if there is a simple way to use DirectX to do this, since I already have information in LPDIRECT3DTEXTURE9 structures, is there a simple way to access a specific pixel from within that object? Or am I going to have to use the GDI or direct file access options?
--------------------------Vantage: Greenlit on Steam / Independent Games Festival Submission http://www.crystaldragon.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.