|
Blender V5.3
|
Inherits IInitializeWithStream, and IThumbnailProvider.
Public Member Functions | |
| CBlendThumb () | |
| virtual | ~CBlendThumb () |
| IFACEMETHODIMP | QueryInterface (REFIID riid, void **ppv) |
| IFACEMETHODIMP_ (ULONG) AddRef() | |
| IFACEMETHODIMP_ (ULONG) Release() | |
| IFACEMETHODIMP | Initialize (IStream *pStream, DWORD grfMode) |
| IFACEMETHODIMP | GetThumbnail (UINT cx, HBITMAP *phbmp, WTS_ALPHATYPE *pdwAlpha) |
This thumbnail provider implements #IInitializeWithStream to enable being hosted in an isolated process for robustness.
Definition at line 31 of file blendthumb_win32.cc.
|
inline |
Definition at line 33 of file blendthumb_win32.cc.
References blender::nullptr.
Referenced by CBlendThumb_CreateInstance(), and QueryInterface().
|
inlinevirtual |
Definition at line 35 of file blendthumb_win32.cc.
| IFACEMETHODIMP CBlendThumb::GetThumbnail | ( | UINT | cx, |
| HBITMAP * | phbmp, | ||
| WTS_ALPHATYPE * | pdwAlpha ) |
IThumbnailProvider
Definition at line 146 of file blendthumb_win32.cc.
References blender::blendthumb_create_thumb_from_file(), blender::BT_OK, blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::Thumbnail::data, float, blender::Thumbnail::height, scale(), stream_close(), stream_read(), stream_seek(), and blender::Thumbnail::width.
|
inline |
Definition at line 52 of file blendthumb_win32.cc.
|
inline |
Definition at line 57 of file blendthumb_win32.cc.
| IFACEMETHODIMP CBlendThumb::Initialize | ( | IStream * | pStream, |
| DWORD | grfMode ) |
IInitializeWithStream
Definition at line 88 of file blendthumb_win32.cc.
References QueryInterface().
|
inline |
Definition at line 42 of file blendthumb_win32.cc.
References CBlendThumb().
Referenced by CBlendThumb_CreateInstance(), and Initialize().