Community
Participate
Working Groups
This is a placeholder for a few things to do with GC's API. New idioms: drawPoint(): currently we use fillRectangle() but it doesn't respect linewidth info, and uses the background colour instead of the foreground New features: floodFill() get/setLineJoinStyle() and get/setLineCapStyle(): both X and Windows support this get/setFillPattern() or get/setBrush() get/setRenderingQuality(), see 1GFW6YW X and Windows have a notion of this for some drawing operations (e.g. fast lines, fonts), and Mac OS X swears by it... perhaps a hint here would open up avenues for performance optimization or embellishment e.g. SWT.DRAFT_QUALITY, SWT.DEFAULT_QUALITY == SWT.DISPLAY_QUALITY, SWT.PRINT_QUALITY Extended documentation: 1. For each drawing operation list exactly which attributes will affect the rendering (and in what fashion if the effects are unusual) e.g. drawRoundRectangle() <ul> <li>Foreground <li>LineStyle <li>LineWidth <li>XORMode </ul> e.g. fillRoundRectangle() <ul> <li>Background <li>XORMode </ul> 2. Document the difference between Width/Height when applied to drawXXX() methods and fillXXX() methods. This is a potent source of off-by-one errors. NOTES:
PRODUCT VERSION: Build 125
New feature work to be potentially done at a later date. Will check the documentation.
Handing this off to Silenio since he has more to do with graphics than I. Not sure what still needs to be done here. Note: This is a very old PR.
These APIs have been added. See: GC.drawPoint() GC.get/setBackgroundPattern() GC.get/setLineJoin() GC.get/setLineCap() GC.get/setInterpolation()