編集

次の方法で共有


SKData.Create Method

Definition

Overloads

Create(IntPtr, Int32, SKDataReleaseDelegate, Object)

Returns a new SKData instance with reference to the specified data.

Create(Stream, UInt64)

Returns a new SKData instance with a copy of the data from the stream.

Create(Stream, Int64)

Returns a new SKData instance with a copy of the data from the stream.

Create(Stream, Int32)

Returns a new SKData instance with a copy of the data from the stream.

Create(IntPtr, Int32)

Returns a new SKData instance with reference to the specified data.

Create(SKStream, UInt64)

Returns a new SKData instance with a copy of the data from the stream.

Create(SKStream, Int64)

Returns a new SKData instance with a copy of the data from the stream.

Create(IntPtr, Int32, SKDataReleaseDelegate)

Returns a new SKData instance with reference to the specified data.

Create(UInt64)

Returns a new SKData instance with uninitialized data.

Create(String)

Returns a new SKData instance with the data from the file.

Create(Stream)

Returns a new SKData instance with a copy of the data from the stream.

Create(Int64)
Create(Int32)

Returns a new SKData instance with uninitialized data.

Create(SKStream)

Returns a new SKData instance with a copy of the data from the stream.

Create(SKStream, Int32)

Returns a new SKData instance with a copy of the data from the stream.

Create(IntPtr, Int32, SKDataReleaseDelegate, Object)

Returns a new SKData instance with reference to the specified data.

public static SkiaSharp.SKData Create (IntPtr address, int length, SkiaSharp.SKDataReleaseDelegate releaseProc, object context);

Parameters

address
IntPtr

The pointer to a buffer.

length
Int32

The length of the buffer.

releaseProc
SKDataReleaseDelegate

The delegate to invoke when the SKData instance is ready to be discarded.

context
Object

The user state to pass to the delegate when it is invoked.

Returns

Returns the new SKData instance with reference to the specified data.

Remarks

The caller is responsible for ensuring the data buffer lives as long as the SKData instance.

Applies to

Create(Stream, UInt64)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (System.IO.Stream stream, ulong length);

Parameters

stream
Stream

The stream to read.

length
UInt64

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to

Create(Stream, Int64)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (System.IO.Stream stream, long length);

Parameters

stream
Stream

The stream to read.

length
Int64

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to

Create(Stream, Int32)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (System.IO.Stream stream, int length);

Parameters

stream
Stream

The stream to read.

length
Int32

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to

Create(IntPtr, Int32)

Returns a new SKData instance with reference to the specified data.

public static SkiaSharp.SKData Create (IntPtr address, int length);

Parameters

address
IntPtr

The pointer to a buffer.

length
Int32

The length of the buffer.

Returns

Returns the new SKData instance with reference to the specified data.

Remarks

The caller is responsible for ensuring the data buffer lives as long as the SKData instance.

Applies to

Create(SKStream, UInt64)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (SkiaSharp.SKStream stream, ulong length);

Parameters

stream
SKStream

The stream to read.

length
UInt64

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to

Create(SKStream, Int64)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (SkiaSharp.SKStream stream, long length);

Parameters

stream
SKStream

The stream to read.

length
Int64

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to

Create(IntPtr, Int32, SKDataReleaseDelegate)

Returns a new SKData instance with reference to the specified data.

public static SkiaSharp.SKData Create (IntPtr address, int length, SkiaSharp.SKDataReleaseDelegate releaseProc);

Parameters

address
IntPtr

The pointer to a buffer.

length
Int32

The length of the buffer.

releaseProc
SKDataReleaseDelegate

The delegate to invoke when the SKData instance is ready to be discarded.

Returns

Returns the new SKData instance with reference to the specified data.

Remarks

The caller is responsible for ensuring the data buffer lives as long as the SKData instance.

Applies to

Create(UInt64)

Returns a new SKData instance with uninitialized data.

public static SkiaSharp.SKData Create (ulong size);

Parameters

size
UInt64

The size of the data buffer to create.

Returns

Returns the new SKData instance.

Applies to

Create(String)

Returns a new SKData instance with the data from the file.

public static SkiaSharp.SKData Create (string filename);

Parameters

filename
String

The file to open.

Returns

Returns the new SKData instance.

Applies to

Create(Stream)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (System.IO.Stream stream);

Parameters

stream
Stream

The stream to read.

Returns

Returns the new SKData instance.

Applies to

Create(Int64)

public static SkiaSharp.SKData Create (long size);

Parameters

size
Int64

Returns

Applies to

Create(Int32)

Returns a new SKData instance with uninitialized data.

public static SkiaSharp.SKData Create (int size);

Parameters

size
Int32

The size of the data buffer to create.

Returns

Returns the new SKData instance.

Applies to

Create(SKStream)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (SkiaSharp.SKStream stream);

Parameters

stream
SKStream

The stream to read.

Returns

Returns the new SKData instance.

Applies to

Create(SKStream, Int32)

Returns a new SKData instance with a copy of the data from the stream.

public static SkiaSharp.SKData Create (SkiaSharp.SKStream stream, int length);

Parameters

stream
SKStream

The stream to read.

length
Int32

The amount of data to read.

Returns

Returns the new SKData instance.

Applies to