PdfRpt.Core.Helper.VectorImages.CrossImage C# (CSharp) Method

CrossImage() public static method

A vector cross sign image's definition
public static CrossImage ( PdfContentByte cb, System color ) : Image
cb iTextSharp.text.pdf.PdfContentByte drawing canvas
color System fill color
return iTextSharp.text.Image
        public static Image CrossImage(PdfContentByte cb, System.Drawing.Color color)
        {
            var template = cb.CreateTemplate(240, 240);

            template.NewPath();
            template.MoveTo(13.57143f, 76.42857262f);
            template.LineTo(23.57143f, 86.42857262f);
            template.LineTo(48.57143f, 61.42857262f);
            template.LineTo(73.57143f, 86.42857262f);
            template.LineTo(83.57143f, 76.42857262f);
            template.LineTo(58.57143f, 51.42857262f);
            template.LineTo(83.57143f, 26.42857262f);
            template.LineTo(73.57143f, 16.42857262f);
            template.LineTo(48.57143f, 41.42857262f);
            template.LineTo(23.57143f, 16.42857262f);
            template.LineTo(13.57143f, 26.42857262f);
            template.LineTo(38.57143f, 51.42857262f);
            template.ClosePath();

            template.NewPath();
            template.MoveTo(13.57143f, 76.42857262f);
            template.LineTo(23.57143f, 86.42857262f);
            template.LineTo(48.57143f, 61.42857262f);
            template.LineTo(73.57143f, 86.42857262f);
            template.LineTo(83.57143f, 76.42857262f);
            template.LineTo(58.57143f, 51.42857262f);
            template.LineTo(83.57143f, 26.42857262f);
            template.LineTo(73.57143f, 16.42857262f);
            template.LineTo(48.57143f, 41.42857262f);
            template.LineTo(23.57143f, 16.42857262f);
            template.LineTo(13.57143f, 26.42857262f);
            template.LineTo(38.57143f, 51.42857262f);
            template.ClosePath();

            template.NewPath();
            template.MoveTo(13.57143f, 76.42857262f);
            template.LineTo(23.57143f, 86.42857262f);
            template.LineTo(48.57143f, 61.42857262f);
            template.LineTo(73.57143f, 86.42857262f);
            template.LineTo(83.57143f, 76.42857262f);
            template.LineTo(58.57143f, 51.42857262f);
            template.LineTo(83.57143f, 26.42857262f);
            template.LineTo(73.57143f, 16.42857262f);
            template.LineTo(48.57143f, 41.42857262f);
            template.LineTo(23.57143f, 16.42857262f);
            template.LineTo(13.57143f, 26.42857262f);
            template.LineTo(38.57143f, 51.42857262f);
            template.ClosePath();

            template.SetRGBColorFill(color.R, color.G, color.B);
            template.Fill();

            var img = Image.GetInstance(template);
            return img;
        }