示例#1
0
        /**
         * add a filled 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 fill the fill color/gradient
         * @param stroke the stroke color/gradient
         */

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