PDA

Click to See Complete Forum and Search --> : DX Blitting between pixel formats?


Vuen
Jan 29th, 2001, 11:15 PM
I have a question. If I DirectDrawSurface7.Blt from an 8-bit surface to a 24-bit surface, will it work? I just read this thing that says it doesnt convert pixel format, it just copies the bits.

And the reason I can't just try and figure it out is because I still can't create a 256 color surface without changing the display mode or using createsurfacefromfile. I've been trying to figure this out for quite a while now, and no one will tell me how. If you know how could you please just tell me?

drewski
Jan 30th, 2001, 07:47 PM
you can make a 256 color bitmap using paint. when you go to save it click save as and for the file type select 256 color bitmap.

drewski

Vuen
Feb 8th, 2001, 09:42 PM
without changing the display mode or using createsurfacefromfile.

I'm making an RTS in DDraw 7. I think I know how to use Paint.

Jotaf98
Feb 9th, 2001, 12:14 PM
Someone else asked that question in this same forum; he wanted to create a 256-colors surface from a resource file, so he couldn't use "CreateFromFile" (or whatever :) ) .
He didn't get an answer, the only possible way would be to create it from a blank file and then modifying the surface.

And yes, it's possible and it will not just copy the bits. :p

Vuen
Feb 10th, 2001, 08:55 PM
Lol, that was prolly me askin about that. And yes I found out.

And .Blt will work? Good. Finally. Thanks

MoMad
Feb 11th, 2001, 01:59 AM
hey vuen, what is up with ur footer??? it says, last edited by vuen and the date and time... how did you do that??? did u put vbcode in ur footer?? whats the code?? LOL

Sastraxi
Feb 11th, 2001, 09:58 AM
If you edit your post after you post it the first time, it says that under your footer.
If you could do that, I would have my post number in my footer.

....or were you just joking?