Image::GetFrameCount method (gdiplusheaders.h)

The Image::GetFrameCount method gets the number of frames in a specified dimension of this Image object.

Syntax

UINT GetFrameCount(
  [in] const GUID *dimensionID
);

Parameters

[in] dimensionID

Type: const GUID*

Pointer to a GUID that specifies the dimension. GUIDs that identify various dimensions are defined in Gdiplusimaging.h.

Return value

Type: UINT

This method returns the number of frames in the specified dimension of this Image object.

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

Copying Individual Frames from a Multiple-Frame Image

Creating and Saving a Multiple-Frame Image

EncoderParameter

Image

Image::GetFrameDimensionsCount

Image::GetFrameDimensionsList

Image::SaveAdd Methods