ImageEn, unit iexShellThumbnails |
|
IShellItemImageFactory GetImage Flags
Declaration
SIIGBF_RESIZETOFIT = $00000000; // Shrink the bitmap as necessary to fit, preserving its aspect ratio
SIIGBF_SCALEUP = $00000100; // Stretch the bitmap if necessary so that the height and width fit the given size.
SIIGBF_BIGGERSIZEOK = $00000001; // Passed by callers if they want to stretch the returned image themselves. For example, if the caller passes an icon size of 80x80, a 96x96 thumbnail could be returned. This action can be used as a performance optimization if the caller expects that they will need to stretch the image.
SIIGBF_CROPTOSQUARE = $00000020; // Crop the bitmap to a square
SIIGBF_WIDETHUMBNAILS = $00000040; // Stretch and crop the bitmap to a 0.7 aspect ratio
SIIGBF_THUMBNAILONLY = $00000008; // Return only the thumbnail, never the icon. Note that not all items have thumbnails, so SIIGBF_THUMBNAILONLY will cause the method to fail in these cases
SIIGBF_ICONONLY = $00000004; // Return only the icon, never the thumbnail
SIIGBF_ICONBACKGROUND = $00000080; // If returning an icon, paint a background using the associated app's registered background color
SIIGBF_MEMORYONLY = $00000002; // Return the item only if it is already in memory. Do not access the disk even if the item is cached. Note that this only returns an already-cached icon and can fall back to a per-class icon if an item has a per-instance icon that has not been cached
SIIGBF_INCACHEONLY = $00000010; // Allows access to the disk, but only to retrieve a cached item. This returns a cached thumbnail if it is available. If no cached thumbnail is available, it returns a cached per-instance icon but does not extract a thumbnail or icon