편집

다음을 통해 공유


SKDocument.CreateXps Method

Definition

Overloads

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, Single)

Create a XPS-backed document, writing the results into a stream.

CreateXps(Stream, Single)

Create a XPS-backed document, writing the results into a stream.

CreateXps(String, Single)
Obsolete.

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, Single)

Create a XPS-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreateXps (SkiaSharp.SKWStream stream, float dpi = 72);
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, 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, Single)

Caution

Use CreateXps(SKWStream, float) instead.

Create a XPS-backed document, writing the results into a file.

[System.Obsolete("Use CreateXps(SKWStream, float) instead.")]
public static SkiaSharp.SKDocument CreateXps (string path, float dpi = 72);
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.

Attributes

Remarks

XPS pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

Applies to