ID2D1RenderTarget::DrawBitmap methods

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic
Draws the specified ID2D1Bitmap.

Overload list

MethodDescription
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

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget
How to Draw a Bitmap
How to Load a Bitmap from a Resource
How to Load a Bitmap from a File

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.