ID2D1RenderTarget::DrawBitmap methods
Draws the specified ID2D1Bitmap.
Overload list
Method | Description |
---|---|
DrawBitmap(ID2D1Bitmap*,D2D1_RECT_F&,FLOAT,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_RECT_F&) | Draws the specified bitmap after scaling it to the size of the specified rectangle. |
DrawBitmap(ID2D1Bitmap*,D2D1_RECT_F&,FLOAT,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_RECT_F*) | Draws the specified bitmap after scaling it to the size of the specified rectangle. |
DrawBitmap(ID2D1Bitmap*,D2D1_RECT_F*,FLOAT,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_RECT_F*) | Draws the specified bitmap after scaling it to the size of the specified rectangle. |
Remarks
This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawBitmap) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.
Examples
For an example, see How to Draw a Bitmap. For an example showing how to load a bitmap from a resource or a file, see How to Load a Bitmap from a Resource and How to Load a Bitmap from a File.
Requirements
Requirement | Value |
---|---|
Library |
|
DLL |
|