public static ColorToTintMatrix ( int r, int g, int b, int a ) : float[][] | ||
r | int | |
g | int | |
b | int | |
a | int | |
return | float[][] |
protected override BitmapHolder Transform(BitmapHolder bitmapSource, string path, ImageSource source, bool isPlaceholder, string key) { if (EnableSolidColor) { ToReplacedColor(bitmapSource, R, G, B, A); return(bitmapSource); } base.RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(bitmapSource, path, source, isPlaceholder, key)); }
protected override NSImage Transform(NSImage sourceBitmap, string path, Work.ImageSource source, bool isPlaceholder, string key) { if (EnableSolidColor) { return(Helpers.MainThreadDispatcher.PostForResult <NSImage>(() => ToSolidColor(sourceBitmap, R, G, B, A))); } RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(sourceBitmap, path, source, isPlaceholder, key)); }
protected override Bitmap Transform(Bitmap source) { if (EnableSolidColor) { return(ToSolidColor(source, R, G, B, A)); } RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(source)); }
protected override UIImage Transform(UIImage sourceBitmap, string path, Work.ImageSource source, bool isPlaceholder, string key) { if (EnableSolidColor) { return(ToSolidColor(sourceBitmap, R, G, B, A)); } RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(sourceBitmap, path, source, isPlaceholder, key)); }
protected override BitmapHolder Transform(BitmapHolder source) { if (EnableSolidColor) { ToReplacedColor(source, R, G, B, A); return(source); } RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(source)); }
protected override BitmapHolder Transform(BitmapHolder source) { RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(source)); }
protected override UIKit.UIImage Transform(UIKit.UIImage source) { RGBAWMatrix = FFColorMatrix.ColorToTintMatrix(R, G, B, A); return(base.Transform(source)); }