IImage::GetThumbnail (Windows CE 5.0)

Send Feedback

This method returns a thumbnail image for the current image object.

Optional thumbWidth and thumbHeight parameters specify the desired thumbnail size (in pixel units). If they are both 0, the thumbnail size is determined by the image object.

HRESULT GetThumbnail(  OPTIONAL UINT thumbWidth,  OPTIONAL UINT thumbHeight,  IImage**      thumbImage);

Parameters

  • thumbWidth
    [in] An optional UINT value specifying the desired horizontal size, measured in pixels, of the new thumbnail image.
  • thumbHeight
    [in] An optional UINT value specifying the desired vertical size, measured in pixels, of the new thumbnail image.
  • thumbImage
    [out] A pointer to the resulting IImage interface pointer representing the thumbnail image.

Return Values

If successful, this method returns S_OK.

If it fails, this method should return one of the following error values:

  • IMGERR_CODECNOTFOUND
  • IMGERR_OBJECTBUSY
  • E_INVALIDARG
  • E_OUTOFMEMORY

For more information, see Error Codes for the Imaging API.

Remarks

If the image object contains thumbnail data, this method creates the thumbnail image from that data. Otherwise, this method generates a thumbnail image for itself.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Imaging.h.
Link Library: Imaging.lib.

See Also

IImage

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.