예제 #1
0
 public TextElement(string content, float fontSize, PdfFont font, PdfColor color)
 {
     Content = content;
       FontSize = fontSize;
       Font = font;
       Color = color;
 }
예제 #2
0
 public bool Equals(PdfColor other)
 {
   if (other == null) return false;
   return this.m_Name.EqualsOrdSenseCase(other.m_Name) &&
          this.m_R == other.m_R &&
          this.m_G == other.m_G &&
          this.m_B == other.m_B;
 }
예제 #3
0
파일: PdfColor.cs 프로젝트: chadfords/nfx
 public bool Equals(PdfColor other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.m_Name.EqualsOrdSenseCase(other.m_Name) &&
            this.m_R == other.m_R &&
            this.m_G == other.m_G &&
            this.m_B == other.m_B);
 }
예제 #4
0
파일: PdfColor.cs 프로젝트: mjaric/nfx
 public bool Equals(PdfColor other)
 {
     if (other == null)
     {
         return(false);
     }
     return(string.Equals(this.m_Name, other.m_Name, StringComparison.Ordinal) &&
            this.m_R == other.m_R &&
            this.m_G == other.m_G &&
            this.m_B == other.m_B);
 }
예제 #5
0
파일: PdfColor.cs 프로젝트: itadapter/nfx
 public bool Equals(PdfColor other)
 {
     if (other == null) return false;
       return this.m_Name.EqualsOrdSenseCase(other.m_Name) &&
      this.m_R == other.m_R &&
      this.m_G == other.m_G &&
      this.m_B == other.m_B;
 }
예제 #6
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
        /// <summary>
        /// Add raw text to the page
        /// </summary>
        public TextElement AddText(string text, float fontSize, PdfFont font, PdfColor foreground)
        {
            var element = new TextElement(text, fontSize, font, foreground);
              Add(element);

              return element;
        }
예제 #7
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add rectangle primitive to the page
 /// </summary>
 public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return AddRectangle(x1, y1, x2, y2, new PdfDrawStyle(borderThickness, borderColor, borderType) { FillColor = fill });
 }
예제 #8
0
 public PdfDrawStyle(PdfColor fillColor)
 {
     FillColor = fillColor;
 }
예제 #9
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor, PdfLineType strokeType)
 {
     StrokeThickness = strokeThickness;
       StrokeColor = strokeColor;
       StrokeType = strokeType;
 }
예제 #10
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add line primitive to the page
 /// </summary>
 public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness, PdfColor color, PdfLineType type)
 {
     return AddLine(x1, y1, x2, y2, new PdfDrawStyle(thickness, color, type));
 }
예제 #11
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add circle primitive to the page
 /// </summary>
 public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return AddCircle(centerX, centerY, r, new PdfDrawStyle(borderThickness, borderColor, borderType) { FillColor = fill });
 }
예제 #12
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add circle primitive to the page
 /// </summary>
 public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill)
 {
     return AddCircle(centerX, centerY, r, new PdfDrawStyle(fill));
 }
예제 #13
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor, PdfLineType strokeType)
 {
     StrokeThickness = strokeThickness;
     StrokeColor     = strokeColor;
     StrokeType      = strokeType;
 }
예제 #14
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor)
     : this(strokeThickness, strokeColor, PdfLineType.Normal)
 {
 }
예제 #15
0
 public PdfDrawStyle(PdfColor fillColor)
 {
     FillColor = fillColor;
 }
예제 #16
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor)
     : this(strokeThickness, strokeColor, PdfLineType.Normal)
 {
 }
예제 #17
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add path to the page
 /// </summary>
 public PathElement AddPath(float x, float y, float thickness, PdfColor color, PdfLineType type)
 {
     return AddPath(x, y, new PdfDrawStyle(thickness, color, type));
 }
예제 #18
0
파일: PdfPage.cs 프로젝트: itadapter/nfx
 /// <summary>
 /// Add rectangle primitive to the page
 /// </summary>
 public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill)
 {
     return AddRectangle(x1, y1, x2, y2, new PdfDrawStyle(fill));
 }
예제 #19
0
파일: PdfColor.cs 프로젝트: jorik041/nfx
 public bool Equals(PdfColor other)
 {
   if (other == null) return false;
   return string.Equals(this.m_Name, other.m_Name, StringComparison.Ordinal) &&
          this.m_R == other.m_R &&
          this.m_G == other.m_G &&
          this.m_B == other.m_B;
 }