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);
}