예제 #1
0
 public SKPngEncoderOptions(SKPngEncoderFilterFlags filterFlags, int zLibLevel, SKTransferFunctionBehavior unpremulBehavior)
 {
     fFilterFlags      = filterFlags;
     fZLibLevel        = zLibLevel;
     fUnpremulBehavior = unpremulBehavior;
     fComments         = null;
 }
예제 #2
0
        public bool ReadPixels(SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY, SKTransferFunctionBehavior behavior)
        {
            var cinfo = SKImageInfoNative.FromManaged(ref dstInfo);

            return(SkiaApi.sk_pixmap_read_pixels(Handle, &cinfo, (void *)dstPixels, (IntPtr)dstRowBytes, srcX, srcY, behavior));
        }
예제 #3
0
 public bool ReadPixels(SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY, SKTransferFunctionBehavior behavior) =>
 ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);