PDA

Click to See Complete Forum and Search --> : Height & width


KingDavid
Apr 3rd, 2001, 11:12 PM
(Direct Draw)
I use CreateSurfaceFromFile method to load a file How do I get the Height and width of the image.

kedaman
Apr 4th, 2001, 09:57 AM
Dim desc As DDSURFACEDESC2
surface.GetSurfaceDesc desc
height = desc.lHeight
width = desc.lWidth

KingDavid
Apr 4th, 2001, 12:43 PM
tanks!