Click or drag to resize

ThumbnailProviderHandlerBaseGetThumbnail Method

IT Hit User File System
Gets a thumbnail image and alpha type.

Namespace:  ITHit.FileSystem.Windows.ShellExtension
Assembly:  ITHit.FileSystem.Windows.ShellExtension (in ITHit.FileSystem.Windows.ShellExtension.dll) Version: 8.4.27341.0
Syntax
public int GetThumbnail(
	uint cx,
	out IntPtr phbmp,
	out WTS_ALPHATYPE pdwAlpha
)

Parameters

cx
Type: SystemUInt32
The maximum thumbnail size, in pixels. The Shell draws the returned bitmap at this size or smaller. The returned bitmap should fit into a square of width and height cx, though it does not need to be a square image. The Shell scales the bitmap to render at lower sizes. For example, if the image has a 6:4 aspect ratio, then the returned bitmap should also have a 6:4 aspect ratio.
phbmp
Type: SystemIntPtr
When this method returns, contains a pointer to the thumbnail image handle. The image must be a DIB section and 32 bits per pixel. The Shell scales down the bitmap if its width or height is larger than the size specified by cx. The Shell always respects the aspect ratio and never scales a bitmap larger than its original size.
pdwAlpha
Type: WTS_ALPHATYPE
When this method returns, contains a pointer to one of the values from the WTS_ALPHATYPE enumeration.

Return Value

Type: Int32
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Implements

IThumbnailProvider.GetThumbnail(UInt32, IntPtr, WTS_ALPHATYPE)
See Also