Pinta.ImageManipulation.ColorBgra.FromBgr C# (CSharp) Méthode

FromBgr() public static méthode

Creates a new ColorBgra instance with the given color values, and 255 for alpha.
public static FromBgr ( byte b, byte g, byte r ) : ColorBgra
b byte
g byte
r byte
Résultat ColorBgra
        public static ColorBgra FromBgr(byte b, byte g, byte r)
        {
            return FromBgra(b, g, r, 255);
        }

Usage Example

        public override ColorBgra GetPercentileColor(float fraction)
        {
            int[] perc = GetPercentile(fraction);

            return(ColorBgra.FromBgr((byte)(perc[0]), (byte)(perc[1]), (byte)(perc[2])));
        }
All Usage Examples Of Pinta.ImageManipulation.ColorBgra::FromBgr