adding a Palette to a Surface in DirectX
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I'm displaying a bitmap Image with DirectDraw. Now I want to change the Brightness of the image. I thought it could work by changing the Palette. The problem is that I am not able to add a palette to a surface. I tried to add it with the constructor for the Palette which needs a Surface as argument. Is it possible to change the pixelFormat of the Surface. If O could set in to 8bppIndexed then I would also have a palette, right? I think it is very hard to work with Direct Draw because the DirectDraw documentation in ManagedDirectX 9.0 is very bad.:(( Can anyone help? :) Thank you very much -- modified at 9:05 Wednesday 31st August, 2005