private StampLine DrawOuterLineForSquare(StampXmlEntity stampData)
        {
            StampLine line = new StampLine();

            line.BackgroundColor    = getColor(stampData.backgroundColor);
            line.OuterBorder.Color  = getColor(stampData.strokeColor);
            line.OuterBorder.Weight = stampData.strokeWidth;
            line.InnerBorder.Color  = getColor(stampData.backgroundColor);
            line.InnerBorder.Weight = 0.5;
            line.Height             = 1;
            return(line);
        }
        private StampLine PrepareHarisontalLine(StampXmlEntity stampData, string text, int reductionSize)
        {
            StampLine squareLine = new StampLine
            {
                Text = text
            };

            squareLine.Font.Size      = stampData.fontSize / reductionSize;
            squareLine.Font.Bold      = stampData.bold;
            squareLine.Font.Italic    = stampData.italic;
            squareLine.Font.Underline = stampData.underline;
            squareLine.TextColor      = getColor(stampData.textColor);

            return(squareLine);
        }
        private int CalculateRedactionSize(StampXmlEntity stampData)
        {
            int reductionSize = 0;

            if ((double)stampData.height / SignatureData.ImageHeight > 1 && (double)stampData.height / SignatureData.ImageHeight < 2)
            {
                reductionSize = 2;
            }
            else if (stampData.height / SignatureData.ImageHeight == 0)
            {
                reductionSize = 1;
            }
            else
            {
                reductionSize = Convert.ToInt32(stampData.height / SignatureData.ImageHeight);
            }
            return(reductionSize);
        }
        private StampLine DrawOuterCircle(StampXmlEntity stampData, string innerBorderColor, string text, int height, int reductionSize)
        {
            StampLine line = new StampLine();

            line.BackgroundColor    = getColor(stampData.backgroundColor);
            line.OuterBorder.Color  = getColor(stampData.strokeColor);
            line.OuterBorder.Weight = stampData.strokeWidth;
            line.InnerBorder.Color  = getColor(innerBorderColor);
            line.InnerBorder.Weight = 0.5;
            line.Text             = text;
            line.Font.Bold        = stampData.bold;
            line.Font.Italic      = stampData.italic;
            line.Font.Underline   = stampData.underline;
            line.Height           = height;
            line.Font.Size        = stampData.fontSize / reductionSize;
            line.TextColor        = getColor(stampData.textColor);
            line.TextBottomIntent = (height / 2) - (stampData.fontSize / 2);
            line.TextRepeatType   = StampTextRepeatType.None;
            return(line);
        }