| BOOL CBCGPAnimCtrl::SetBitmap | ( | UINT | uiBmpId, |
| int | nFrameWidth, | ||
| COLORREF | clrTransparent = RGB(255, 0, 255), |
||
| BOOL | bSizeToContent = TRUE, |
||
| BOOL | bDPIAutoScale = FALSE |
||
| ) |
Sets a new bitmap
Loads a bitmap from resources using uiBmpId and builds an image list. You have to use -1 as clrTransparent for opaque bitmaps.
Note. The animation process is stopped during a call to SetBitmap
| uiBmpId | The bitmap's resource ID |
| nFrameWidth | The frame width, used to create an image list |
| clrTransparent | An RGB value which specifies the transparent color of the bitmap. |
| bSizeToContent | Specifies whether the bitmap/image list should be stretched to fit the content |
| bDPIAutoScale | Specifies whether the bitmap should be automatically scaled according to current DPI. |