Printing text using a BufferedImage is not a good idea if a primary
concern is text quality.
Printing text directly to the printer graphics will do a lot for your
text quality.

If you need to overlay labels on the image you can still print the
image THEN print the text at the appropriate positions afterwards.

-phil.

> Date: Wed, 19 Sep 2001 01:53:47 +0800
> From: "Jason T. S. Chow" <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Tuning printing quality
> To: [EMAIL PROTECTED]
> 
> Hi all,
> 
>   Is there any way to control the quality of BufferedImage? In my program, 
everything
> (text + image) is rendered in a BufferedImage object, and then the print 
method draw the
> BufferedImage. The image is ok, but the text is aliased. I have tried to set 
the rendering
> hints (ReneringHints.KEY_ANTIALIASING and
> RenderingHints.KEY_TEXT_ANTIALIASING) to on, but it makes the text blur 
instead.
> How can the printing quality be improved? or other image classes should be 
used?
> Thanks in advance.
> 
> Jason
> 
> ----------------------------------------------
>  �w��ϥ�HongKong.com�l��t��
>  Thank you for using hongkong.com Email system
> 
> ===========================================================================
> 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".

==========================================================================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