You miss the newPath after clip. Best Regards, Paulo Soares
----- Original Message ----- From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 22, 2003 15:56 Subject: [iText-questions] Clipping to a path > I am facing some problem with clipping. Here is the following code: > > mPdfContentByte.moveTo(150, 500); > mPdfContentByte.lineTo(250, 600); > mPdfContentByte.lineTo(150, 700); > mPdfContentByte.closePath(); > mPdfContentByte.fill(); > //Clipping across the path > mPdfContentByte.moveTo(150, 500); > mPdfContentByte.lineTo(250, 600); > mPdfContentByte.lineTo(150, 700); > mPdfContentByte.closePath(); > mPdfContentByte.clip(); > //Drawing a test line. > mPdfContentByte.setLineWidth(2); > mPdfContentByte.moveTo(200, 400); > mPdfContentByte.lineTo(200, 800); > mPdfContentByte.stroke(); > > Thought the line should be clipped. But, I am seeing the entire line > from > (200,400) to (200, 800). > Am I missing something? > > Regards, > Ramana.JV. > > ************************************************************************ > **** > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > ************************************************************************ > **** > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions