Beispiel #1
0
        /// <summary>
        /// Clones report element.
        /// </summary>
        public override object Clone()
        {
            UserPaint tmp = new UserPaint(0, 0, 0, 0, section);

            tmp.X      = this.X;
            tmp.Y      = this.Y;
            tmp.Width  = this.Width;
            tmp.Height = this.Height;
            tmp.Layout = this.Layout;
            tmp.Name   = "userPaint" + tmp.GetHashCode().ToString();
            return(tmp);
        }
Beispiel #2
0
        private void ProcessUserPaint(PdfPage page, Com.Delta.Print.Engine.UserPaint userPaint)
        {
            try
            {
                PdfImage image = pdfDocument.NewImage(userPaint.Image);

                image.Width  = Convert(userPaint.Width);
                image.Height = Convert(userPaint.Height);

                page.Add(image, Convert(userPaint.Bounds.X), Convert(userPaint.Bounds.Y), Convert(userPaint.Bounds.Width), Convert(userPaint.Bounds.Height));
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
            }
        }