This commit is contained in:
honfika@gmail.com
2014-09-30 23:38:22 +02:00
parent c620164c0a
commit ca9f7b7c86
7 changed files with 13 additions and 31 deletions

View File

@@ -54,17 +54,12 @@ import com.jpexs.decompiler.flash.abc.usages.MethodParamsMultinameUsage;
import com.jpexs.decompiler.flash.abc.usages.MethodReturnTypeMultinameUsage;
import com.jpexs.decompiler.flash.abc.usages.MultinameUsage;
import com.jpexs.decompiler.flash.abc.usages.TypeNameMultinameUsage;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
import com.jpexs.decompiler.flash.helpers.SWFDecompilerPlugin;
import com.jpexs.decompiler.flash.helpers.collections.MyEntry;
import com.jpexs.decompiler.flash.tags.ABCContainerTag;
import com.jpexs.decompiler.flash.tags.SymbolClassTag;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.graph.CompilationException;
import com.jpexs.decompiler.graph.TranslateStack;
import com.jpexs.helpers.utf8.Utf8PrintWriter;
import java.io.IOException;
import java.io.OutputStream;

View File

@@ -37,6 +37,7 @@ import java.awt.LinearGradientPaint;
import java.awt.MultipleGradientPaint;
import java.awt.Paint;
import java.awt.RadialGradientPaint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.TexturePaint;
import java.awt.geom.AffineTransform;
@@ -44,7 +45,6 @@ import java.awt.geom.GeneralPath;
import java.awt.geom.NoninvertibleTransformException;
import java.util.ArrayList;
import java.util.List;
import java.awt.Shape;
/**
*
@@ -77,17 +77,17 @@ public class BitmapExporter extends ShapeExporterBase {
/**
* the AffineTransform used to transform the shape before stroking.
*/
private AffineTransform transform;
private final AffineTransform transform;
/**
* The inverse of {@link #transform}, used to transform back after
* stroking.
*/
private AffineTransform inverse;
private final AffineTransform inverse;
/**
* Our base stroke.
*/
private Stroke stroke;
private final Stroke stroke;
/**
* Creates a TransformedStroke based on another Stroke and an
@@ -106,7 +106,8 @@ public class BitmapExporter extends ShapeExporterBase {
* This outline is distorted by our AffineTransform relative to the
* outline which would be given by the base stroke, but only in terms of
* scaling (i.e. thickness of the lines), as translation and rotation
* are undone after the stroking.
* are undone after the stro @Override
king.
*/
public Shape createStrokedShape(Shape s) {
Shape sTrans = transform.createTransformedShape(s);

View File

@@ -18,8 +18,6 @@ package com.jpexs.decompiler.flash.types;
import com.jpexs.decompiler.flash.types.annotations.Internal;
import com.jpexs.decompiler.flash.types.annotations.SWFType;
import java.awt.Color;
import java.awt.color.ColorSpace;
import java.io.Serializable;
/**