Exemple #1
0
        /**
         * add a rectangle to the current stream
         *
         * @param x the x position of left edge in millipoints
         * @param y the y position of top edge in millipoints
         * @param w the width in millipoints
         * @param h the height in millipoints
         * @param stroke the stroke color/gradient
         */

        private void AddRect(int x, int y, int w, int h, PdfColor stroke)
        {
            CloseText();
            currentStream.DrawRect(x, y, w, h, stroke);
        }