Image::GetWidth method (gdiplusheaders.h)

The Image::GetWidth method gets the width, in pixels, of this image.

Syntax

UINT GetWidth();

Return value

Type: UINT

This method returns the width, in pixels, of this image.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Bitmap

Image

Image::GetHeight

Image::GetHorizontalResolution

Image::GetVerticalResolution

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles