Ticket #74 (feature request)
Opened 3 years ago
Last modified 3 years ago
Antialiased line and polygon stroke
Status: assigned
| Reported by: | seang | Assigned to: | seang (accepted) |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Styles and Symbolizers | Version: | |
| Keywords: | Cc: | hobu | |
Need to add an "antialiasing" property to Stroke objects. If this is True, then the renderer should turn on antialiasing.
Howard had success with the MapServer? renderer like:
elif ISLDPolygonSymbolizer.providedBy(symbolizer):
f = symbolizer.fill
s = symbolizer.stroke
layerob.transparency = _mapscript.MS_GD_ALPHA
try:
if f:
styleob.color.setHex(f.color)
si = classob.insertStyle(mapscript.styleObj())
sty2 = classob.getStyle(si)
sty2.symbol = 1
try:
sty2.size = int(s.width)
except AttributeError:
pass
sty2.outlinecolor.setHex(s.color)
sty2.antialias = _mapscript.MS_TRUE
else:
styleob.outlinecolor.setHex(s.color)
try:
styleob.width = int(s.width)
except AttributeError:
pass
except:
raise
Change History
05/09/06 14:16:34: Modified by seang
- status changed from new to assigned.

antialiasing property added to Stroke in r421, but we're not doing anything about it yet in the renderer.