Results 1 to 7 of 7

Thread: size of a DirectDrawSurface7

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    size of a DirectDrawSurface7

    does any one know the size of a direct draw surface?
    does its size change based on the size of a picture you put in it?
    what is its size if its just been defined and it is not yet holding a picture?
    where is the sdk for dx7 (vb) i could'nt find it at the mircrosoft web site

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    And for that size of surface question...look here

  4. #4

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    ops i should have been more clear

    i meant size like in bytes
    Last edited by dogfish227; Jan 9th, 2003 at 04:11 PM.

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I'm just guessing here, but I think you can calculate it if you multibly hight and width and the bit dept....

  6. #6
    Junior Member
    Join Date
    Nov 2002
    Posts
    18
    What exactly do you need to know its size for? If you're planning on copying the contnets to your own data buffer, just allocate enough space for the width x height x sizeofpixel (which I assume you would know in advance if you're going to be working with the image data, and it should just depend on the depth - 1, 2, 3, or 4 bytes per pixel).

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Height*Pitch*BPP for the real data size of the surface.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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