This topic is now archived and is closed to further replies.

Create a per-pixel access to a texture

This topic is 5845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello... I will create a per-pixel access to a Direct3D8 texture. For example, to change the 321e pixel on the x axis and 24e pixel on the y axis from blue to red. I suppose the solution use the Lock() function, but I don''t know anymore. If someone has a tutorial about this question... Thanks for all.

Share this post

Link to post
Share on other sites
Look at the DX8 docs:

DirectX 8.1 (C++) ->
DirectX Graphics ->
Programmers Guide ->
Using Direct3D ->
Textures ->
Surfaces ->
"Accessing Surface Memory Directly"

That''s the location for the topic in the DX8.1 SDK, but the topic has been in all the SDK docs since around the DX5 days (possibly earlier)!

Simon O''''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites