Hi all:

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".

Reply via email to