/** * 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 */ private void AddFilledRect(int x, int y, int w, int h, PdfColor fill) { CloseText(); currentStream.FillRect(x, y, w, h, fill); }