Expand Minimize

WTS_CONTEXTFLAGS enumeration

Specifies the context of a thumbnail extraction. Used by IThumbnailSettings::SetContext.

Your thumbnail provider will set this flag based on the WTS_FLAGS values that it received through the IThumbnailProvider::GetThumbnail request.

Syntax


enum WTS_CONTEXTFLAGS {  WTSCF_DEFAULT   = 0x00000000, 
  WTSCF_APPSTYLE  = 0x00000001, 
  WTSCF_SQUARE    = 0x00000002, 
  WTSCF_WIDE      = 0x00000004, 
  WTSCF_FAST      = 0x00000008 

};

Constants

WTSCF_DEFAULT

None of the following options are set. Set in response to WTS_NONE.

WTSCF_APPSTYLE

Provide a thumbnail suitable to the Windows Store app UX guidelines. Set in response to WTS_APPSTYLE.

WTSCF_SQUARE

If necessary, crop the bitmap's dimensions so that is square. The length of the shortest side becomes the length of all sides. Set in response to WTS_CROPTOSQUARE.

WTSCF_WIDE

Stretch and crop the bitmap so that its height is 0.7 times its width. Set in response to WTS_WIDETHUMBNAILS.

WTSCF_FAST

If not cached, only extract the thumbnail if it is embedded in EXIF format, typically 96x96. Set in response to WTS_FASTEXTRACT.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Thumbcache.h

IDL

Thumbcache.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft