Example #1
0
 public bool Equals(PdfExtGraphicState other)
 {
     if (object.ReferenceEquals(null, other))
     {
         return(false);
     }
     return(object.ReferenceEquals(this, other) || ((other.strokAlpha == this.strokAlpha) && (other.fillAlpha == this.fillAlpha)));
 }
Example #2
0
        /// <summary>
        /// Adds the Extend Graphics State.
        /// </summary>
        /// <param name="egs">The Extend Graphics State.</param>
        /// <returns></returns>
        public PdfName AddExtGState(PdfExtGraphicState egs)
        {
            if (egs == null)
            {
                throw new PdfArgumentNullException("egs");
            }
            egs.IsLabeled = true;
            PdfName key = this.manager.AddExtGState(ref egs);

            if (!this.ExtGStates.ContainsKey(key))
            {
                this.ExtGStates.Add(key, egs);
            }
            return(key);
        }