|
-
Jan 8th, 2003, 09:09 PM
#1
Thread Starter
Hyperactive Member
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
-
Jan 9th, 2003, 01:28 AM
#2
-
Jan 9th, 2003, 01:32 AM
#3
And for that size of surface question...look here
-
Jan 9th, 2003, 04:07 PM
#4
Thread Starter
Hyperactive Member
ops i should have been more clear
i meant size like in bytes
Last edited by dogfish227; Jan 9th, 2003 at 04:11 PM.
-
Jan 9th, 2003, 05:50 PM
#5
I'm just guessing here, but I think you can calculate it if you multibly hight and width and the bit dept....
-
Jan 10th, 2003, 10:20 PM
#6
Junior Member
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).
-
Jan 11th, 2003, 01:34 PM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|