I guess you forgot to disable the double buffering while printing.
In that case you will render the image first to a internal (double buffer)
image that has a resolution of the screen (typically 72 dpi) and then this
internal image is rendered to the printer (and there it can only gain 72 dpi).
Switch off double buffering before printing and switch it on after printing
again.
I guess this should solve the problem.
If you use any transformations you have to make sure, that the image in
rendered in the correct size (AffineTransform can change the size, rotation
and translation of the image).
Karsten
>
> I read a image (tiff 300dpi) with:
>
> ...
> URL myUrl = new URL( "http:..." );
> ParameterBlock pb = new ParameterBlock();
> pb.add( myUrl );
> RenderedOp img = JAI.create( "URL", pb );
> ...
>
> I print with:
>
> ...
> PrinterJob job = PrinterJob.getPrinterJob();
> job.print();
> ...
>
> public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws
> PrinterException {
>
> if (pageIndex > 0) return NO_SUCH_PAGE;
> Graphics2D g2 = (Graphics2D) g;
>
> ...
> g2.drawRenderedImage( img, new AffineTransform());
> return Printable.PAGE_EXISTS;
>
> But before print I scaling the image becouse use 72 dpi, how print the
> original image at 300 dpi ?
>
> Help please and thanks, Miriam
>
> (sorry for my english)
>
> Ing. Miriam Steiner
> Centro de C�mputos - IM.P.O.
>
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
Karsten Trott
Technical Lead, Intuitive Design Interface , Get2Chip.com, Inc.
Staff R&D Engineer
Phone: +49-89-5908-2333
Fax: +49-89-5908-1328
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".