ISharedBitmap::InitializeBitmap method
Initializes a new ISharedBitmap object with a given bitmap.
Syntax
HRESULT InitializeBitmap( [in] HBITMAP hbm, [in] WTS_ALPHATYPE wtsAT );
Parameters
- hbm [in]
-
Type: HBITMAP
A handle to the bitmap with which to initialize a new ISharedBitmap object. The bitmap must be a DIB.
- wtsAT [in]
-
Type: WTS_ALPHATYPE
The alpha type of the bitmap image. May be one of the following values.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
When an ISharedBitmap object is instantiated by the client (as opposed to being returned by the IThumbnailCache::GetThumbnailByID or IThumbnailCache::GetThumbnail methods), the underlying bitmap will not reside in shared memory.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: