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))); }
/// <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); }