SKCodec.Create 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
Create(SKData) |
Creates a codec from the specified data. |
Create(SKStream) |
Creates a codec from the specified stream. |
Create(Stream) |
Creates a codec from the specified stream. |
Create(String) |
Creates a codec from the specified file. |
Create(SKStream, SKCodecResult) |
Creates a codec from the specified stream. |
Create(Stream, SKCodecResult) |
Creates a codec from the specified stream. |
Create(String, SKCodecResult) |
Creates a codec from the specified file. |
Create(SKData)
Create(SKStream)
Creates a codec from the specified stream.
public static SkiaSharp.SKCodec Create (SkiaSharp.SKStream stream);
Parameters
- stream
- SKStream
The stream to use when creating the codec.
Returns
Returns the new instance of the codec, or null
if there was an error.
Remarks
If null
is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.
Applies to
Create(Stream)
Creates a codec from the specified stream.
public static SkiaSharp.SKCodec Create (System.IO.Stream stream);
Parameters
- stream
- Stream
The stream to use when creating the codec.
Returns
Returns the new instance of the codec, or null
if there was an error.
Remarks
If null
is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.
Applies to
Create(String)
Create(SKStream, SKCodecResult)
Creates a codec from the specified stream.
public static SkiaSharp.SKCodec Create (SkiaSharp.SKStream stream, out SkiaSharp.SKCodecResult result);
Parameters
- stream
- SKStream
The stream to use when creating the codec.
- result
- SKCodecResult
The result of the creation operation.
Returns
Returns the new instance of the codec, or null
if there was an error.
Remarks
If null
is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.
Applies to
Create(Stream, SKCodecResult)
Creates a codec from the specified stream.
public static SkiaSharp.SKCodec Create (System.IO.Stream stream, out SkiaSharp.SKCodecResult result);
Parameters
- stream
- Stream
The stream to use when creating the codec.
- result
- SKCodecResult
The result of the creation operation.
Returns
Returns the new instance of the codec, or null
if there was an error.
Remarks
If null
is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.
Applies to
Create(String, SKCodecResult)
Creates a codec from the specified file.
public static SkiaSharp.SKCodec Create (string filename, out SkiaSharp.SKCodecResult result);
Parameters
- filename
- String
The path to an encoded image on the file system.
- result
- SKCodecResult
The result of the creation operation.
Returns
Returns the new instance of the codec, or null
if there was an error.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin