Skip to content

Latest commit

 

History

History
107 lines (74 loc) · 4.05 KB

nf-d2d1_1-id2d1devicecontext-drawbitmap(id2d1bitmap_constd2d1_rect_f_float_d2d1_interpolation_mode_constd2d1_rect_f_constd2d1_matrix_4x4_f).md

File metadata and controls

107 lines (74 loc) · 4.05 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d2d1_1.ID2D1DeviceContext.DrawBitmap(ID2D1Bitmap,constD2D1_RECT_F,FLOAT,D2D1_INTERPOLATION_MODE,constD2D1_RECT_F,constD2D1_MATRIX_4X4_F)
ID2D1DeviceContext::DrawBitmap (d2d1_1.h)
Draws a bitmap to the render target. (overload 1/5)
DrawBitmap
DrawBitmap method [Direct2D]
DrawBitmap method [Direct2D]
ID2D1DeviceContext interface
ID2D1DeviceContext interface [Direct2D]
DrawBitmap method
ID2D1DeviceContext.DrawBitmap
ID2D1DeviceContext::DrawBitmap
ID2D1DeviceContext::DrawBitmap(ID2D1Bitmap
const D2D1_RECT_F &
FLOAT
D2D1_INTERPOLATION_MODE
const D2D1_RECT_F &
const D2D1_MATRIX_4X4_F &)
d2d1_1/ID2D1DeviceContext::DrawBitmap
direct2d.id2d1devicecontext_drawbitmap
direct2d\id2d1devicecontext_drawbitmap.htm
Direct2D
e6cff1b7-055b-442c-99aa-afeeee4d06e8
12/05/2018
DrawBitmap, DrawBitmap method [Direct2D], DrawBitmap method [Direct2D],ID2D1DeviceContext interface, ID2D1DeviceContext interface [Direct2D],DrawBitmap method, ID2D1DeviceContext.DrawBitmap, ID2D1DeviceContext::DrawBitmap, ID2D1DeviceContext::DrawBitmap(ID2D1Bitmap,const D2D1_RECT_F &,FLOAT,D2D1_INTERPOLATION_MODE,const D2D1_RECT_F &,const D2D1_MATRIX_4X4_F &), d2d1_1/ID2D1DeviceContext::DrawBitmap, direct2d.id2d1devicecontext_drawbitmap
d2d1_1.h
Windows
Windows 8 and Platform Update for Windows 7 [desktop apps \| UWP apps]
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps \| UWP apps]
D2d1.dll
Windows
19H1
ID2D1DeviceContext::DrawBitmap
d2d1_1/ID2D1DeviceContext::DrawBitmap
c++
APIRef
kbSyntax
COM
D2d1.dll
ID2D1DeviceContext.DrawBitmap

ID2D1DeviceContext::DrawBitmap

-description

Draws a bitmap to the render target.

-parameters

-param bitmap [in]

Type: ID2D1Bitmap*

The bitmap to draw.

-param destinationRectangle [in, optional]

Type: D2D1_RECT_F*

The destination rectangle. The default is the size of the bitmap and the location is the upper left corner of the render target.

-param opacity

Type: FLOAT

The opacity of the bitmap.

-param interpolationMode

Type: D2D1_INTERPOLATION_MODE

The interpolation mode to use.

-param sourceRectangle [in, optional]

Type: const D2D1_RECT_F

An optional source rectangle.

-param perspectiveTransform [in, optional]

Type: const D2D1_MATRIX_4X4_F

An optional perspective transform.

-remarks

The destinationRectangle parameter defines the rectangle in the target where the bitmap will appear (in device-independent pixels (DIPs)). This is affected by the currently set transform and the perspective transform, if set. If NULL is specified, then the destination rectangle is (left=0, top=0, right = width(sourceRectangle), bottom = height(sourceRectangle)).

The sourceRectangle parameter defines the sub-rectangle of the source bitmap (in DIPs). DrawBitmap will clip this rectangle to the size of the source bitmap, thus making it impossible to sample outside of the bitmap. If NULL is specified, then the source rectangle is taken to be the size of the source bitmap.

If you specify perspectiveTransform it is applied to the rect in addition to the transform set on the render target.

-see-also

ID2D1DeviceContext