FromBgra() public static method

Creates a new ColorBgra instance with the given color and alpha values.
public static FromBgra ( byte b, byte g, byte r, byte a ) : ColorBgra
b byte
g byte
r byte
a byte
return ColorBgra
コード例 #1
0
        /// <summary>
        /// Gets the equivalent GDI+ PixelFormat.
        /// </summary>
        /// <remarks>
        /// This property always returns PixelFormat.Format32bppArgb.
        /// </remarks>
//        public static PixelFormat PixelFormat
//        {
//            get
//            {
//                return PixelFormat.Format32bppArgb;
//            }
//        }

        /// <summary>
        /// Returns a new ColorBgra with the same color values but with a new alpha component value.
        /// </summary>
        public ColorBgra NewAlpha(byte newA)
        {
            return(ColorBgra.FromBgra(B, G, R, newA));
        }