Fixing antialias conflation includes line width

This commit is contained in:
Jindra Petřík
2025-04-21 08:42:43 +02:00
parent 209e49503a
commit b854b7b7b5
4 changed files with 7 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
### Added
- [#2427] Commandline export with use of imported SWFs (importAssets tag)
- Auto detect scale factor on Hi-dpi displays
- [#1826] (Optional) Extending fill area by half pixel to fix antialias conflation artifacts
- [#1826] (Optional) Extending shape area by half pixel to fix antialias conflation artifacts
(Can be turned on in advanced settings)
### Fixed

View File

@@ -421,6 +421,10 @@ public class BitmapExporter extends ShapeExporterBase {
if (thickness * unzoom < 1 * SWF.unitDivisor) {
thickness = 1 * SWF.unitDivisor / unzoom;
}
if (Configuration.fixAntialiasConflation.get()) {
thickness += 1 * SWF.unitDivisor / unzoom;
}
if (joinStyle == BasicStroke.JOIN_MITER) {
//lineStroke = new BasicStroke((float) thickness, capStyle, joinStyle, miterLimit);

View File

@@ -430,7 +430,7 @@ config.name.warning.video.vlc = Warn on missing VLC
config.description.warning.video.vlc = Show warning about VLC media player required when opening SWFs with DefineVideoStream tags when VLC is not available.
config.name.playFrameSounds = Play frame sounds
config.description.playFrameSounds = Play sounds on displaying frames.
config.name.fixAntialiasConflation = Extend fill area to fix antialias conflation
config.name.fixAntialiasConflation = Extend shape area to fix antialias conflation
config.description.fixAntialiasConflation = Fixes conflation artifacts between adjacent shapes caused by antialiasing by extending contour of shape by half pixel.
config.name.autoPlaySounds = Autoplay sounds
config.description.autoPlaySounds = Automatically play sounds (DefineSound) on treenode selection.

View File

@@ -428,7 +428,7 @@ config.name.warning.video.vlc = Varovat p\u0159i chyb\u011bj\u00edc\u00edm VLC
config.description.warning.video.vlc = Zobrazovat varov\u00e1n\u00ed o vy\u017eadovan\u00e9m VLC media playeru p\u0159i otev\u00edr\u00e1n\u00ed SWF s DefineVideoStream tagy kdy\u017e je VLC nedostupn\u00fd.
config.name.playFrameSounds = P\u0159ehr\u00e1vat sn\u00edmkov\u00e9 zvuky
config.description.playFrameSounds = P\u0159ehr\u00e1vat zvuky p\u0159i zobrazov\u00e1n\u00ed sn\u00edmk\u016f.
config.name.fixAntialiasConflation = Roz\u0161\u00ed\u0159it plochu v\u00fdpln\u011b pro opravu konflace antialiasingu
config.name.fixAntialiasConflation = Roz\u0161\u00ed\u0159it plochu tvaru pro opravu konflace antialiasingu
config.description.fixAntialiasConflation = Oprav\u00ed konfla\u010dn\u00ed artefakty mezi soused\u00edc\u00edmi tvary zp\u016fsoben\u00e9 antialiasingem roz\u0161\u00ed\u0159en\u00edm obrysu tvaru o p\u016fl pixelu.
config.name.autoPlaySounds = Automaticky p\u0159ehr\u00e1vat zvuky
config.description.autoPlaySounds = Automaticky p\u0159ehr\u00e1vat zvuky (DefineSound) p\u0159i v\u00fdb\u011bru polo\u017eky ve stromu.