public static SKPMColor[] PreMultiply(SKColor[] colors) { var pmcolors = new SKPMColor [colors.Length]; SkiaApi.sk_color_premultiply_array(colors, colors.Length, pmcolors); return(pmcolors); }
public static SKPMColor[] PreMultiply(SKColor[] colors) { var pmcolors = new SKPMColor [colors.Length]; fixed(SKColor *c = colors) fixed(SKPMColor * pm = pmcolors) { SkiaApi.sk_color_premultiply_array(c, colors.Length, pm); } return(pmcolors); }
public SKColor GetUnPreMultipliedColor(int index) => SKPMColor.UnPreMultiply(this [index]);
public SKColorTable(SKColor[] colors, int count) : this(SKPMColor.PreMultiply(colors), count) { }
public static SKColor UnPreMultiply(SKPMColor pmcolor) { return(SkiaApi.sk_color_unpremultiply(pmcolor)); }