Exemple #1
0
        /**
         * render image area to PDF
         *
         * @param area the image area to render
         */

        public void RenderImageArea(ImageArea area)
        {
            int x = this.currentXPosition + area.getXOffset();
            int y = this.currentYPosition;
            int w = area.getContentWidth();
            int h = area.GetHeight();

            this.currentYPosition -= h;

            FonetImage img = area.getImage();

            PdfXObject xobj = this.pdfCreator.AddImage(img);

            CloseText();
            currentStream.FillImage(x, y, w, h, xobj);



            this.currentXPosition += area.getContentWidth();
        }