|
-
May 5th, 2001, 08:24 PM
#1
bits per pixel
Now this seems simple enough, but it doesn't seem to work.....
Code:
'first surface is created from file into imgDesc
Dim ImageWidth As Long
Dim ImageHeight As Long
Dim ImageBPP As Long
ImageWidth = imgDesc.lWidth 'this works
ImageHeight = imgDesc.lHeight 'this works too
ImageBPP = imgDesc.ddpfPixelFormat.IRGBBitCount 'this always returns 0
0 bpp?
-
May 6th, 2001, 07:01 AM
#2
transcendental analytic
did you flag the DDSD_PIXELFORMAT bit on dwFlags before passing the DDSURFACEDESC2
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 7th, 2001, 01:41 AM
#3
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
|