Results 1 to 7 of 7

Thread: DX Blitting between pixel formats?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    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?
    Vuen

  2. #2
    Addicted Member drewski's Avatar
    Join Date
    Feb 2000
    Location
    WA
    Posts
    242
    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
    I see said the blind man as he spat into the wind.

    It all comes back to me now!

    A.D.T.'s VB

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    without changing the display mode or using createsurfacefromfile.
    I'm making an RTS in DDraw 7. I think I know how to use Paint.
    Last edited by Vuen; Feb 8th, 2001 at 10:46 PM.
    Vuen

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    Lol, that was prolly me askin about that. And yes I found out.

    And .Blt will work? Good. Finally. Thanks
    Last edited by Vuen; Feb 10th, 2001 at 10:00 PM.
    Vuen

  6. #6
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    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
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  7. #7
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width