The RGBA record represents a color as 32-bit red, green, blue and alpha value. An RGBA

color with an alpha value of 255 is completely opaque. An RGBA color with an alpha value of

zero is completely transparent. Alpha values between zero and 255 are partially transparent.

Inheritance: Rgb
示例#1
0
        /// <summary>
        /// Parses this object out of a stream
        /// </summary>
        /// <param name="input">The input stream.</param>
        /// <param name="colorTableSize"></param>
        /// <param name="imageDataSize"></param>
        public override void Parse( Stream input, byte colorTableSize, UInt32 imageDataSize )
        {
            Rgba temp = null;

            for (int i = 0; i <= colorTableSize; i++) // BitmapColorTableSize + 1.
            {
                temp = new Rgba( this._SwfVersion );
                temp.Parse( input );
                this._colorTableRGB.Add(temp);
            }

            this._colormapPixelData = new byte[(Int32)imageDataSize];
            int read = input.Read( this._colormapPixelData, 0, (Int32)imageDataSize );
        }
示例#2
0
 /// <summary>
 /// <para>Gradient information</para>
 /// </summary>
 /// <param name="InitialVersion">The version of the Swf file using this object.</param>
 public MorphGradRecord(byte InitialVersion)
     : base(InitialVersion)
 {
     this._startColor = new Rgba(this._SwfVersion);
     this._endColor = new Rgba(this._SwfVersion);
 }
示例#3
0
 /// <summary>
 /// The format of a line style value within the file
 /// </summary>
 /// <param name="InitialVersion">The version of the Swf file using this object.</param>
 public MorphLineStyle(byte InitialVersion)
     : base(InitialVersion)
 {
     this._startColor = new Rgba(this._SwfVersion);
     this._endColor = new Rgba(this._SwfVersion);
 }