are you setting anti-aliasing on your GraphicsContext?

    g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);

> -----Original Message-----
> From: Discussion list for Java 2D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Yorston
> Sent: Sunday, October 24, 1999 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA2D] Odd shaped circles
>
>
> Is anything going to happen about fixing bug id 4151279
> (Filled ellipses are
> often not as smooth as calling fillOval in JDK 1.1)?  I'm coming up to
> deployment of my applet and if 4151279 isn't fixed in 1.3 I'm
> going to have
> to take steps to work around it.
>
> My applet is written to JDK 1.0 and works well under browsers
> supporting
> JDK 1.0 and 1.1.  There are problems with JDK 1.2.
>
> The applet uses small circles (4-10 pixel diameter) to act as
> markers on a map.
> The map itself is buffered through an offscreen image while
> the map legend is
> drawn directly to a window.  Under JDK 1.0 and JDK 1.1 the
> offscreen image is
> an instance of sun.awt.motif.X11OffScreenImage while under
> JDK 1.2 it's a
> java.awt.image.BufferedImage.
>
> This results in the following problems:
>
> 1) Drawing the map is slower under 1.2 because more work is
> done in rendering
>    the circles:  there's all sorts of Bezier stuff happening
> in 1.2 whereas
>    in 1.0 and 1.1 the circle rendering is passed off to the X server.
>
> 2) The circles in 1.2 look ugly, and non-circular.
>
> 3) The circles on the map (drawn to a
> java.awt.image.BufferedImage) have a
>    different shape to those drawn directly to the legend
> window without any
>    buffering.  Drawing directly to a window is still using
> native X11 methods.
>
> The sun.awt.motif.X11OffScreenImage no longer exists in 1.2.
> Ideally I'd like
> to have it restored, preferably with the same API but using a
> different one if
> necessary, so that I can get the same behaviour under 1.2 as
> under previous
> versions.
>
> Ron
>
> ==============================================================
> =============
> 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