SKDocument.CreateXps Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateXps(SKWStream) |
Create a XPS-backed document, writing the results into a stream. |
| CreateXps(Stream) |
Create a XPS-backed document, writing the results into a stream. |
| CreateXps(String) |
Create a XPS-backed document, writing the results into a file. |
| CreateXps(SKWStream, SKDocumentXpsOptions) |
Creates an XPS document writer that writes to the specified stream using the provided options. |
| CreateXps(SKWStream, Single) |
Create a XPS-backed document, writing the results into a stream. |
| CreateXps(Stream, SKDocumentXpsOptions) |
Creates an XPS document writer that writes to the specified managed stream using the provided options. |
| CreateXps(Stream, Single) |
Create a XPS-backed document, writing the results into a stream. |
| CreateXps(String, SKDocumentXpsOptions) |
Creates an XPS document writer that writes to the specified file using the provided options. |
| CreateXps(String, Single) |
Create a XPS-backed document, writing the results into a file. |
CreateXps(SKWStream)
Create a XPS-backed document, writing the results into a stream.
public static SkiaSharp.SKDocument CreateXps(SkiaSharp.SKWStream stream);
Parameters
- stream
- SKWStream
The stream to write to.
Returns
Returns the new XPS-backed document.
Applies to
CreateXps(Stream)
Create a XPS-backed document, writing the results into a stream.
public static SkiaSharp.SKDocument CreateXps(System.IO.Stream stream);
Parameters
- stream
- Stream
The stream to write to.
Returns
Returns the new XPS-backed document.
Applies to
CreateXps(String)
Create a XPS-backed document, writing the results into a file.
public static SkiaSharp.SKDocument CreateXps(string path);
Parameters
- path
- String
The path of the file to write to.
Returns
Returns the new XPS-backed document.
Applies to
CreateXps(SKWStream, SKDocumentXpsOptions)
Creates an XPS document writer that writes to the specified stream using the provided options.
public static SkiaSharp.SKDocument CreateXps(SkiaSharp.SKWStream stream, SkiaSharp.SKDocumentXpsOptions options);
Parameters
- stream
- SKWStream
The stream to which the XPS document will be written.
- options
- SKDocumentXpsOptions
The SKDocumentXpsOptions structure that specifies the options for creating the XPS document.
Returns
A new SKDocument for writing XPS content, or null if XPS is not supported on the current platform.
Applies to
CreateXps(SKWStream, Single)
Create a XPS-backed document, writing the results into a stream.
public static SkiaSharp.SKDocument CreateXps(SkiaSharp.SKWStream stream, float dpi);
Parameters
- stream
- SKWStream
The stream to write to.
- dpi
- Single
The DPI (pixels-per-inch) at which features without native XPS support will be rasterized.
Returns
Returns the new XPS-backed document.
Remarks
XPS pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.
Applies to
CreateXps(Stream, SKDocumentXpsOptions)
Creates an XPS document writer that writes to the specified managed stream using the provided options.
public static SkiaSharp.SKDocument CreateXps(System.IO.Stream stream, SkiaSharp.SKDocumentXpsOptions options);
Parameters
- stream
- Stream
The managed stream to which the XPS document will be written.
- options
- SKDocumentXpsOptions
The SKDocumentXpsOptions structure that specifies the options for creating the XPS document.
Returns
A new SKDocument for writing XPS content, or null if XPS is not supported on the current platform.
Applies to
CreateXps(Stream, Single)
Create a XPS-backed document, writing the results into a stream.
public static SkiaSharp.SKDocument CreateXps(System.IO.Stream stream, float dpi);
Parameters
- stream
- Stream
The stream to write to.
- dpi
- Single
The DPI (pixels-per-inch) at which features without native XPS support will be rasterized.
Returns
Returns the new XPS-backed document.
Remarks
XPS pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.
Applies to
CreateXps(String, SKDocumentXpsOptions)
Creates an XPS document writer that writes to the specified file using the provided options.
public static SkiaSharp.SKDocument CreateXps(string path, SkiaSharp.SKDocumentXpsOptions options);
Parameters
- path
- String
The file path to which the XPS document will be written.
- options
- SKDocumentXpsOptions
The SKDocumentXpsOptions structure that specifies the options for creating the XPS document.
Returns
A new SKDocument for writing XPS content, or null if XPS is not supported on the current platform.
Applies to
CreateXps(String, Single)
Create a XPS-backed document, writing the results into a file.
public static SkiaSharp.SKDocument CreateXps(string path, float dpi);
Parameters
- path
- String
The path of the file to write to.
- dpi
- Single
The DPI (pixels-per-inch) at which features without native XPS support will be rasterized.
Returns
Returns the new XPS-backed document.
Remarks
XPS pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.