[OpenJDK 2D-Dev] DrawHandler and clipping / 1x1 ovals
linuxhippy at gmail.com
Thu Jul 10 13:24:27 UTC 2008
1.) While tuning fillOval performance I noticed that the scanlines
generated by DrawHandler don't respect clipping, I get scanlines even
for the areas which are clipped away later by X.
Is DrawHandler capable of clipping, and if so how can this be done?
2.) I am using DoPath for ovals too, because XRender only supports
rectangles, and I noticed that very small ovals differ when rendered
to a BufferedImage, compared result I get when using the X11 pipeline.
Java_sun_java2d_x11_X11Renderer_XFillOval has special case handling
for very small shapes to be more accurat, however I don't know if the
results generated by DrawHandler are "wrong" or the special-case
When filling an Oval with width/height=2, I get a rectangle with
width=2/height=1 with BI and DrawHandler, but a 2x2 rect on X11.
Well, I guess its not important at all, I just thought it could be
More information about the 2d-dev