Skip to content

Latest commit

 

History

History
115 lines (76 loc) · 5.43 KB

nf-d2d1_1-id2d1devicecontext-drawimage(id2d1effect_d2d1_point_2f_constd2d1_rect_f__d2d1_interpolation_mode_d2d1_composite_mode).md

File metadata and controls

115 lines (76 loc) · 5.43 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.DrawImage(ID2D1Effect,D2D1_POINT_2F,constD2D1_RECT_F&,D2D1_INTERPOLATION_MODE,D2D1_COMPOSITE_MODE)
ID2D1DeviceContext::DrawImage(ID2D1Effect,D2D1_POINT_2F,const D2D1_RECT_F &,D2D1_INTERPOLATION_MODE,D2D1_COMPOSITE_MODE) (d2d1_1.h)
Draws an image to the device context. (overload 7/8)
DrawImage
DrawImage method [Direct2D]
DrawImage method [Direct2D]
ID2D1DeviceContext interface
ID2D1DeviceContext interface [Direct2D]
DrawImage method
ID2D1DeviceContext.DrawImage
ID2D1DeviceContext.DrawImage(ID2D1Effect
D2D1_POINT_2F
const D2D1_RECT_F &
D2D1_INTERPOLATION_MODE
D2D1_COMPOSITE_MODE)
ID2D1DeviceContext::DrawImage
ID2D1DeviceContext::DrawImage(ID2D1Effect
D2D1_POINT_2F
const D2D1_RECT_F &
D2D1_INTERPOLATION_MODE
D2D1_COMPOSITE_MODE)
d2d1_1/ID2D1DeviceContext::DrawImage
direct2d.id2d1devicecontext_drawimage8
direct2d\id2d1devicecontext_drawimage8.htm
Direct2D
223BB90B-1AC4-4D11-8C63-D6C887D377E7
12/05/2018
DrawImage, DrawImage method [Direct2D], DrawImage method [Direct2D],ID2D1DeviceContext interface, ID2D1DeviceContext interface [Direct2D],DrawImage method, ID2D1DeviceContext.DrawImage, ID2D1DeviceContext.DrawImage(ID2D1Effect,D2D1_POINT_2F,const D2D1_RECT_F &,D2D1_INTERPOLATION_MODE,D2D1_COMPOSITE_MODE), ID2D1DeviceContext::DrawImage, ID2D1DeviceContext::DrawImage(ID2D1Effect,D2D1_POINT_2F,const D2D1_RECT_F &,D2D1_INTERPOLATION_MODE,D2D1_COMPOSITE_MODE), d2d1_1/ID2D1DeviceContext::DrawImage, direct2d.id2d1devicecontext_drawimage8
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::DrawImage
d2d1_1/ID2D1DeviceContext::DrawImage
c++
APIRef
kbSyntax
COM
D2d1.dll
ID2D1DeviceContext.DrawImage

ID2D1DeviceContext::DrawImage(ID2D1Effect,D2D1_POINT_2F,const D2D1_RECT_F &,D2D1_INTERPOLATION_MODE,D2D1_COMPOSITE_MODE)

-description

Draws an image to the device context.

-parameters

-param effect [in]

Type: ID2D1Image*

The image to be drawn to the device context.

-param targetOffset [in, optional]

Type: const D2D1_POINT_2F

The offset in the destination space that the image will be rendered to. The entire logical extent of the image will be rendered to the corresponding destination. If not specified, the destination origin will be (0, 0). The top-left corner of the image will be mapped to the target offset. This will not necessarily be the origin. This default value is NULL.

-param imageRectangle [in, ref, optional]

Type: const D2D1_RECT_F

The corresponding rectangle in the image space will be mapped to the given origins when processing the image. This default value is NULL.

-param interpolationMode

Type: D2D1_INTERPOLATION_MODE

The interpolation mode that will be used to scale the image if necessary.

-param compositeMode

Type: D2D1_COMPOSITE_MODE

The composite mode that will be applied to the limits of the currently selected clip. The default value is D2D1_COMPOSITE_MODE_SOURCE_OVER

-remarks

If interpolationMode is D2D1_INTERPOLATION_MODE_HIGH_QUALITY, different scalers will be used depending on the scale factor implied by the world transform.

Any invalid rectangles accumulated on any effect that is drawn by this call will be discarded regardless of which portion of the image rectangle is drawn.

If compositeMode is D2D1_COMPOSITE_MODE_SOURCE_OVER, DrawImage will use the currently selected primitive blend specified by ID2D1DeviceContext::SetPrimitiveBlend. If compositeMode is not D2D1_COMPOSITE_MODE_SOURCE_OVER, the image will be extended to transparent up to the current axis-aligned clip.

If there is an image rectangle and a world transform, this is equivalent to inserting a clip effect to represent the image rectangle and a 2D affine transform to take into account the world transform.

-see-also

ID2D1Bitmap

ID2D1Bitmap1

ID2D1DeviceContext

ID2D1Effect

ID2D1Image