Pinta.ImageManipulation.ColorBgra.FromBgr C# (CSharp) Method

FromBgr() public static method

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
return ColorBgra
        public static ColorBgra FromBgr(byte b, byte g, byte r)
        {
            return FromBgra(b, g, r, 255);
        }

Usage Example

コード例 #1
0
        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