16 bit color and ddbltfx

Started by
3 comments, last by lshadow 24 years, 5 months ago
I believe you can use the RGB macro to construct the color value.
Advertisement
Could you use?

red = ff0000h
blue = 00ff00h
green = 0000ffh

would that be the same as using the rgb macro? I have never tried it before because I don't use dx's color fill.

William Reiach - Human Extrodinaire

Marlene and Me


You should always check the pixelformat of your surface(s) using
IDirecrDrawSurface::GetPixelFormat
If you don't, your colors could be messed up on other video cards.
(That was a problem i had, not long ago)

SeeYa...

I'm doing a colorfill for a certain region, so I call the Blt function and pass the ddbltfx structure. But how do I get the color I want for ddbltfx.dwFillColor.

For example, what value do I pass to dwFillColor to get pure red, or pure green, or pure blue? (I'm new with 16 bit color)Thanks for your help.

Working on: DoP
Melo is right: use the dwPixelFormat. The RGB macro won't work on some systems (it doesn't work on my TNT ) and the ff0000, 00ff00, and 0000ff won't work either, for the same reason.

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

This topic is closed to new replies.

Advertisement