tags:

views:

461

answers:

2

HEllo , i can not find any way to get horizontal or/and vertical resolution for bitmap. If you know how to get it, please say it me , Thank you!

A: 

I'd try using the GdiPlus library, specifically the Image class: http://msdn.microsoft.com/en-us/library/ms534462(VS.85).aspx

jdv
A: 

Is your question that you want to know the size of the image?

CBitmap -> GetBitmapDimension
CImage -> GetWidth and GetHeight
BITMAP -> bmWidth and bmHeight

Or that you want to know the size it will have on a display?

GetDeviceCaps(hdc, LOGPIXELSX)
crimson13