public extern static string sk_imagedecoder_get_format_name_from_format(SKImageDecoderFormat cformat);
public extern static bool sk_imagedecoder_decode_file(string file, sk_bitmap_t bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format);
public static bool DecodeMemory(byte[] buffer, SKBitmap bitmap, SKColorType pref = SKColorType.Unknown, SKImageDecoderMode mode = SKImageDecoderMode.DecodePixels) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeMemory(buffer, bitmap, pref, mode, ref format)); }
public static bool DecodeMemory(byte[] buffer, SKBitmap bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format) { return(SkiaApi.sk_imagedecoder_decode_memory(buffer, (IntPtr)buffer.Length, bitmap.Handle, pref, mode, ref format)); }
public static bool DecodeFile(string filename, SKBitmap bitmap, SKColorType pref = SKColorType.Unknown, SKImageDecoderMode mode = SKImageDecoderMode.DecodePixels) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeFile(filename, bitmap, pref, mode, ref format)); }
public static bool DecodeFile(string filename, SKBitmap bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format) { return(SkiaApi.sk_imagedecoder_decode_file(filename, bitmap.Handle, pref, mode, ref format)); }
public static bool DecodeStream(SKStreamRewindable stream, SKBitmap bitmap, SKColorType pref = SKColorType.Unknown, SKImageDecoderMode mode = SKImageDecoderMode.DecodePixels) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeStream(stream, bitmap, pref, mode, ref format)); }
public static bool DecodeStreamBounds(SKStreamRewindable stream, out SKImageInfo info, SKColorType pref = SKColorType.Unknown) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeStreamBounds(stream, out info, pref, ref format)); }
public static bool DecodeMemoryBounds(byte[] buffer, out SKImageInfo info, SKColorType pref = SKColorType.Unknown) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeMemoryBounds(buffer, out info, pref, ref format)); }
public static bool DecodeMemoryBounds(byte[] buffer, out SKImageInfo info, SKColorType pref, ref SKImageDecoderFormat format) { using (var bitmap = new SKBitmap()) { if (DecodeMemory(buffer, bitmap, pref, SKImageDecoderMode.DecodePixels, ref format)) { info = bitmap.Info; return(true); } info = SKImageInfo.Empty; return(false); } }
public static bool DecodeFileBounds(string filename, out SKImageInfo info, SKColorType pref, ref SKImageDecoderFormat format) { using (var bitmap = new SKBitmap()) { if (DecodeFile(filename, bitmap, pref, SKImageDecoderMode.DecodePixels, ref format)) { info = bitmap.Info; return(true); } info = SKImageInfo.Empty; return(false); } }
public static bool DecodeFileBounds(string filename, out SKImageInfo info, SKColorType pref = SKColorType.Unknown) { SKImageDecoderFormat format = SKImageDecoderFormat.Unknown; return(DecodeFileBounds(filename, out info, pref, ref format)); }
public static bool DecodeStreamBounds(SKStreamRewindable stream, out SKImageInfo info, SKColorType pref, ref SKImageDecoderFormat format) { using (var bitmap = new SKBitmap()) { if (DecodeStream(stream, bitmap, pref, SKImageDecoderMode.DecodePixels, ref format)) { info = bitmap.Info; return(true); } info = SKImageInfo.Empty; return(false); } }
public extern static bool sk_imagedecoder_decode_memory(IntPtr buffer, IntPtr size, sk_bitmap_t bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format);
public static bool DecodeStream(SKStreamRewindable stream, SKBitmap bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format) { return(SkiaApi.sk_imagedecoder_decode_stream(stream.Handle, bitmap.Handle, pref, mode, ref format)); }
public extern static bool sk_imagedecoder_decode_stream(sk_stream_streamrewindable_t cstream, sk_bitmap_t bitmap, SKColorType pref, SKImageDecoderMode mode, ref SKImageDecoderFormat format);
public static string GetFormatName(SKImageDecoderFormat format) { return(SkiaApi.sk_imagedecoder_get_format_name_from_format(format)); }