static SKCodecOptions() { Default = new SKCodecOptions(SKZeroInitialized.No); }
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, SKCodecOptions options) { var colorTableCount = 0; return(GetPixels(info, pixels, options, IntPtr.Zero, ref colorTableCount)); }
public SKCodecResult GetPixels (SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return GetPixels (info, pixels, rowBytes, options, colorTable == null ? IntPtr.Zero : colorTable.ReadColors (), ref colorTableCount); }
public SKCodecResult StartScanlineDecode(SKImageInfo info, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) => StartScanlineDecode(info, options);
public unsafe SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return(StartIncrementalDecode(info, pixels, rowBytes, options, colorTable == null ? IntPtr.Zero : colorTable.ReadColors(), ref colorTableCount)); }
public SKCodecResult StartScanlineDecode(SKImageInfo info, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return(StartScanlineDecode(info, options, colorTable == null ? IntPtr.Zero : colorTable.ReadColors(), ref colorTableCount)); }
public unsafe SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, IntPtr colorTable, ref int colorTableCount) { if (pixels == IntPtr.Zero) { throw new ArgumentNullException(nameof(pixels)); } var nativeOptions = SKCodecOptionsInternal.FromManaged(ref options); var cinfo = SKImageInfoNative.FromManaged(ref info); return(SkiaApi.sk_codec_start_incremental_decode(Handle, ref cinfo, pixels, (IntPtr)rowBytes, ref nativeOptions, colorTable, ref colorTableCount)); }
public unsafe SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, IntPtr colorTable, ref int colorTableCount) { if (pixels == IntPtr.Zero) { throw new ArgumentNullException(nameof(pixels)); } var nativeOptions = new SKCodecOptionsInternal { fZeroInitialized = options.ZeroInitialized, fSubset = null, fFrameIndex = (IntPtr)options.FrameIndex, fHasPriorFrame = options.HasPriorFrame }; if (options.HasSubset) { var subset = options.Subset.Value; nativeOptions.fSubset = ⊂ } return(SkiaApi.sk_codec_start_incremental_decode(Handle, ref info, pixels, (IntPtr)rowBytes, ref nativeOptions, colorTable, ref colorTableCount)); }
public unsafe SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return StartIncrementalDecode (info, pixels, rowBytes, options, colorTable == null ? IntPtr.Zero : colorTable.ReadColors (), ref colorTableCount); }
public unsafe SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, IntPtr colorTable, ref int colorTableCount) { if (pixels == IntPtr.Zero) { throw new ArgumentNullException(nameof(pixels)); } var nativeOptions = new SKCodecOptionsInternal { fZeroInitialized = options.ZeroInitialized, fSubset = null }; if (options.HasSubset) { var subset = options.Subset.Value; nativeOptions.fSubset = ⊂ } return(SkiaApi.sk_codec_get_pixels(Handle, ref info, pixels, (IntPtr)rowBytes, ref nativeOptions, colorTable, ref colorTableCount)); }
public SKCodecResult StartIncrementalDecode (SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options) { int colorTableCount = 0; return StartIncrementalDecode (info, pixels, rowBytes, options, IntPtr.Zero, ref colorTableCount); }
public unsafe SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, IntPtr colorTable, ref int colorTableCount) { if (pixels == IntPtr.Zero) throw new ArgumentNullException (nameof (pixels)); var nativeOptions = new SKCodecOptionsInternal { fZeroInitialized = options.ZeroInitialized, fSubset = null }; if (options.HasSubset) { var subset = options.Subset.Value; nativeOptions.fSubset = ⊂ } return SkiaApi.sk_codec_start_incremental_decode (Handle, ref info, pixels, (IntPtr)rowBytes, ref nativeOptions, colorTable, ref colorTableCount); }
public SKCodecResult GetPixels (SKImageInfo info, IntPtr pixels, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return GetPixels (info, pixels, info.RowBytes, options, colorTable, ref colorTableCount); }
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return(GetPixels(info, pixels, rowBytes, options, colorTable == null ? IntPtr.Zero : colorTable.ReadColors(), ref colorTableCount)); }
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, SKCodecOptions options) => GetPixels(info, pixels, info.RowBytes, options);
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) { return(GetPixels(info, pixels, info.RowBytes, options, colorTable, ref colorTableCount)); }
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) => GetPixels(info, pixels, rowBytes, options);
public SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options) { int colorTableCount = 0; return(StartIncrementalDecode(info, pixels, rowBytes, options, IntPtr.Zero, ref colorTableCount)); }
// incremental (start) public SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options) { if (pixels == IntPtr.Zero) { throw new ArgumentNullException(nameof(pixels)); } var nInfo = SKImageInfoNative.FromManaged(ref info); unsafe { var nOptions = new SKCodecOptionsInternal { fZeroInitialized = options.ZeroInitialized, fSubset = null, fFrameIndex = options.FrameIndex, fPriorFrame = options.PriorFrame, fPremulBehavior = options.PremulBehavior, }; var subset = default(SKRectI); if (options.HasSubset) { subset = options.Subset.Value; nOptions.fSubset = ⊂ } return(SkiaApi.sk_codec_start_incremental_decode(Handle, ref nInfo, pixels, (IntPtr)rowBytes, ref nOptions)); } }
public SKCodecResult StartScanlineDecode(SKImageInfo info, SKCodecOptions options) { int colorTableCount = 0; return(StartScanlineDecode(info, options, IntPtr.Zero, ref colorTableCount)); }
public SKCodecResult StartIncrementalDecode(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options, SKColorTable colorTable, ref int colorTableCount) => StartIncrementalDecode(info, pixels, rowBytes, options);
public SKCodecResult GetPixels(SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options) { if (pixels == IntPtr.Zero) { throw new ArgumentNullException(nameof(pixels)); } var nInfo = SKImageInfoNative.FromManaged(ref info); var nOptions = new SKCodecOptionsInternal { fZeroInitialized = options.ZeroInitialized, fSubset = null, fFrameIndex = options.FrameIndex, fPriorFrame = options.PriorFrame, }; var subset = default(SKRectI); if (options.HasSubset) { subset = options.Subset.Value; nOptions.fSubset = ⊂ } return(SkiaApi.sk_codec_get_pixels(Handle, &nInfo, (void *)pixels, (IntPtr)rowBytes, &nOptions)); }