Skip to content

Latest commit

 

History

History
90 lines (67 loc) · 4.24 KB

nf-d2d1-id2d1factory-createstrokestyle(constd2d1_stroke_style_properties__constfloat_uint32_id2d1strokestyle).md

File metadata and controls

90 lines (67 loc) · 4.24 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.ID2D1Factory.CreateStrokeStyle(constD2D1_STROKE_STYLE_PROPERTIES&,constFLOAT,UINT32,ID2D1StrokeStyle)
ID2D1Factory::CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &,const FLOAT,UINT32,ID2D1StrokeStyle) (d2d1.h)
Creates an ID2D1StrokeStyle that describes start cap, dash pattern, and other features of a stroke. (overload 2/2)
CreateStrokeStyle
CreateStrokeStyle method [Direct2D]
CreateStrokeStyle method [Direct2D]
ID2D1Factory interface
ID2D1Factory interface [Direct2D]
CreateStrokeStyle method
ID2D1Factory.CreateStrokeStyle
ID2D1Factory.CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &
const FLOAT
UINT32
ID2D1StrokeStyle)
ID2D1Factory::CreateStrokeStyle
ID2D1Factory::CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &
const FLOAT
UINT32
ID2D1StrokeStyle)
d2d1/ID2D1Factory::CreateStrokeStyle
direct2d.ID2D1Factory_CreateStrokeStyle_ref_D2D1_STROKE_STYLE_PROPERTIES_ptr_FLOAT_ptr_ptr_ID2D1StrokeStyle
direct2d\ID2D1Factory_CreateStrokeStyle_ref_D2D1_STROKE_STYLE_PROPERTIES_ptr_FLOAT_ptr_ptr_ID2D1StrokeStyle.htm
Direct2D
0b567663-8067-440b-ba96-3c3f4d2580e2
12/05/2018
CreateStrokeStyle, CreateStrokeStyle method [Direct2D], CreateStrokeStyle method [Direct2D],ID2D1Factory interface, ID2D1Factory interface [Direct2D],CreateStrokeStyle method, ID2D1Factory.CreateStrokeStyle, ID2D1Factory.CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &,const FLOAT,UINT32,ID2D1StrokeStyle), ID2D1Factory::CreateStrokeStyle, ID2D1Factory::CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &,const FLOAT,UINT32,ID2D1StrokeStyle), d2d1/ID2D1Factory::CreateStrokeStyle, direct2d.ID2D1Factory_CreateStrokeStyle_ref_D2D1_STROKE_STYLE_PROPERTIES_ptr_FLOAT_ptr_ptr_ID2D1StrokeStyle
d2d1.h
Windows
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps \| UWP apps]
D2d1.lib
D2d1.dll
Windows
19H1
ID2D1Factory::CreateStrokeStyle
d2d1/ID2D1Factory::CreateStrokeStyle
c++
APIRef
kbSyntax
COM
D2d1.dll
ID2D1Factory.CreateStrokeStyle

ID2D1Factory::CreateStrokeStyle(const D2D1_STROKE_STYLE_PROPERTIES &,const FLOAT,UINT32,ID2D1StrokeStyle)

-description

Creates an ID2D1StrokeStyle that describes start cap, dash pattern, and other features of a stroke.

-parameters

-param strokeStyleProperties [ref]

Type: const D2D1_STROKE_STYLE_PROPERTIES

A structure that describes the stroke's line cap, dash offset, and other details of a stroke.

-param dashes [in, optional]

Type: const FLOAT*

An array whose elements are set to the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the stroke width.

-param dashesCount

Type: UINT

The number of elements in the dashes array.

-param strokeStyle [out]

Type: ID2D1StrokeStyle**

When this method returns, contains the address of the pointer to the stroke style created by this method.

-returns

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-see-also

ID2D1Factory