Question

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!

Was it helpful?

Solution

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)

OTHER TIPS

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

use GDI+ Bitmap or Image class.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top