Table of Contents

Class DeviceContext5

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("7836d248-68cc-4df6-b9e8-de991bf62eb7")]
public class DeviceContext5 : DeviceContext4
Inheritance
DeviceContext5
Inherited Members

Constructors

DeviceContext5(Device5, DeviceContextOptions)

Initializes a new instance of the DeviceContext5 class using an existing Device5.

public DeviceContext5(Device5 device, DeviceContextOptions options)

Parameters

device Device5

The device.

options DeviceContextOptions

The options to be applied to the created device context.

Remarks

The new device context will not have a selected target bitmap. The caller must create and select a bitmap as the target surface of the context.

DeviceContext5(nint)

public DeviceContext5(nint nativePtr)

Parameters

nativePtr nint

Methods

CreateColorContextFromDxgiColorSpace(ColorSpaceType, ColorContext1)

Creates a color context from a DXGI color space type. It is only valid to use this with the Color Management Effect in 'Best' mode.

public void CreateColorContextFromDxgiColorSpace(ColorSpaceType colorSpace, ColorContext1 colorContext)

Parameters

colorSpace ColorSpaceType

The color space to create the color context from.

colorContext ColorContext1

The created color context.

CreateColorContextFromSimpleColorProfile(ref SimpleColorProfile, ColorContext1)

No documentation.

public void CreateColorContextFromSimpleColorProfile(ref SimpleColorProfile simpleProfile, ColorContext1 colorContext)

Parameters

simpleProfile SimpleColorProfile

No documentation.

colorContext ColorContext1

No documentation.

CreateSvgDocument(IStream, Size2F)

Creates an Svg document from an xml string

public SvgDocument CreateSvgDocument(IStream stream, Size2F viewportSize)

Parameters

stream IStream
viewportSize Size2F

Returns

SvgDocument

Svg document model

CreateSvgDocument(IStream, Size2F, out SvgDocument)

No documentation.

public void CreateSvgDocument(IStream inputXmlStream, Size2F viewportSize, out SvgDocument svgDocument)

Parameters

inputXmlStream IStream

No documentation.

viewportSize Size2F

No documentation.

svgDocument SvgDocument

No documentation.

DrawSvgDocument(SvgDocument)

No documentation.

public void DrawSvgDocument(SvgDocument svgDocument)

Parameters

svgDocument SvgDocument

No documentation.

Operators

explicit operator DeviceContext5(nint)

public static explicit operator DeviceContext5(nint nativePtr)

Parameters

nativePtr nint

Returns

DeviceContext5