(Direct Draw)
I use CreateSurfaceFromFile method to load a file How do I get the Height and width of the image.
Printable View
(Direct Draw)
I use CreateSurfaceFromFile method to load a file How do I get the Height and width of the image.
Code:Dim desc As DDSURFACEDESC2
surface.GetSurfaceDesc desc
height = desc.lHeight
width = desc.lWidth
tanks!