Class DeviceContext5
[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
Device5The device.
options
DeviceContextOptionsThe 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
ColorSpaceTypeThe color space to create the color context from.
colorContext
ColorContext1The created color context.
CreateColorContextFromSimpleColorProfile(ref SimpleColorProfile, ColorContext1)
No documentation.
public void CreateColorContextFromSimpleColorProfile(ref SimpleColorProfile simpleProfile, ColorContext1 colorContext)
Parameters
simpleProfile
SimpleColorProfileNo documentation.
colorContext
ColorContext1No documentation.
CreateSvgDocument(IStream, Size2F)
Creates an Svg document from an xml string
public SvgDocument CreateSvgDocument(IStream stream, Size2F viewportSize)
Parameters
stream
IStreamviewportSize
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
IStreamNo documentation.
viewportSize
Size2FNo documentation.
svgDocument
SvgDocumentNo documentation.
DrawSvgDocument(SvgDocument)
No documentation.
public void DrawSvgDocument(SvgDocument svgDocument)
Parameters
svgDocument
SvgDocumentNo documentation.
Operators
explicit operator DeviceContext5(nint)
public static explicit operator DeviceContext5(nint nativePtr)
Parameters
nativePtr
nint