Board index » delphi » GDI Colors seem to be wrong in DirectX

GDI Colors seem to be wrong in DirectX

Hi

I am a newbie and I have problems with the colors(clYellow,clRed and so on)
that I use in the GDI functions (Canvas objetct, I get the devicecontext for
a dx surface with GetDC()). ClRed just doesn't want to look like red on the
dxSurface. Why this and how to manage it?

    the way of life is learning ...

 

Re:GDI Colors seem to be wrong in DirectX


Hi,

Indeed the colors do not work. You have to define your own with the funtion
RGB(r, g, b: Integer).

LastBoyScout a crit:

Quote
> Hi

> I am a newbie and I have problems with the colors(clYellow,clRed and so on)
> that I use in the GDI functions (Canvas objetct, I get the devicecontext for
> a dx surface with GetDC()). ClRed just doesn't want to look like red on the
> dxSurface. Why this and how to manage it?

>     the way of life is learning ...

Other Threads