Examples of FillStyle


Examples of flash.swf.types.FillStyle

        if (count > 0)
        {
            Iterator<FillStyle> it = fillstyles.iterator();
            while (it.hasNext())
            {
                FillStyle style = (FillStyle) it.next();
                encodeFillStyle(style, w, shape);
            }
        }
    }
View Full Code Here

Examples of flash.swf.types.FillStyle

    private void printFillStyles(ArrayList fillstyles, boolean alpha)
    {
      Iterator it = fillstyles.iterator();
      while (it.hasNext())
      {
        FillStyle fillStyle = (FillStyle)it.next();
        indent();
        out.print("<fillstyle");
        out.print(" type='" + fillStyle.getType() + "'");
        if (fillStyle.getType() == FillStyle.FILL_SOLID)
        {
          out.print(" color='" + (alpha ? printRGBA(fillStyle.color) : printRGB(fillStyle.color)) + "'");
        }
        if ((fillStyle.getType() & FillStyle.FILL_LINEAR_GRADIENT) != 0)
        {
          if (fillStyle.getType() == FillStyle.FILL_RADIAL_GRADIENT)
            out.print( " typeName='radial'");
          else if (fillStyle.getType() == FillStyle.FILL_FOCAL_RADIAL_GRADIENT)
            out.print( " typeName='focal' focalPoint='" + ((FocalGradient)fillStyle.gradient).focalPoint + "'");
          // todo print linear or radial or focal
          out.print(" gradient='" + formatGradient(fillStyle.gradient.records, alpha) + "'");
          out.print(" matrix='" + fillStyle.matrix + "'");
        }
        if ((fillStyle.getType() & FillStyle.FILL_BITS) != 0)
        {
          // todo print tiled or clipped
          out.print(" idref='" + idRef(fillStyle.bitmap) + "'");
          out.print(" matrix='" + fillStyle.matrix + "'");
        }
View Full Code Here

Examples of flash.swf.types.FillStyle

        else
          ShapeHelper.setStyles(shapeRecords, lineStyleIndex, fillStyle0Index, fillStyle1Index);

        if (fill != null)
        {
            FillStyle fillStyle = createFillStyle(fill, edgeBounds);
            sws.fillstyles = new ArrayList<FillStyle>(1);
            sws.fillstyles.add(fillStyle);
        }

        if (stroke != null)
View Full Code Here

Examples of flash.swf.types.FillStyle

            if (windings.length > 0)
                ShapeHelper.setPathStyles(shapeRecords, lineStyleIndex, fillStyle0Index, fillStyle1Index);
            else
                ShapeHelper.setStyles(shapeRecords, lineStyleIndex, fillStyle0Index, fillStyle1Index);

            FillStyle fillStyle = createFillStyle(fill, edgeBounds);
            sws.fillstyles = new ArrayList<FillStyle>(1);
            sws.fillstyles.add(fillStyle);
           
            DefineShape imageShape = new DefineShape(Tag.stagDefineShape4);
            imageShape.shapeWithStyle = sws;
View Full Code Here

Examples of flash.swf.types.FillStyle

            return null;
    }

    protected FillStyle createFillStyle(SolidColorFillNode fill)
    {
        FillStyle fs = new FillStyle();
        fs.color = TypeHelper.colorARGB(fill.color, fill.alpha);
        fs.type = FillStyle.FILL_SOLID;
        return fs;
    }
View Full Code Here

Examples of flash.swf.types.FillStyle

        return fs;
    }

    protected FillStyle createFillStyle(BitmapFillNode fill, Rect bounds)
    {       
        FillStyle fs = new FillStyle();
       
        if (ImageHelper.bitmapFillModeIsRepeat(fill))
            fs.type = FillStyle.FILL_BITS;
        else
            fs.type = FillStyle.FILL_BITS | FillStyle.FILL_BITS_CLIP;
View Full Code Here

Examples of flash.swf.types.FillStyle

        return fs;
    }

    protected FillStyle createFillStyle(LinearGradientFillNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.type = FillStyle.FILL_LINEAR_GRADIENT;
        fs.matrix = TypeHelper.linearGradientMatrix(node, bounds);
        Gradient gradient = new Gradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        fs.gradient = gradient;
View Full Code Here

Examples of flash.swf.types.FillStyle

        return fs;
    }

    protected FillStyle createFillStyle(LinearGradientStrokeNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.type = FillStyle.FILL_LINEAR_GRADIENT;
        fs.matrix = TypeHelper.linearGradientMatrix(node, bounds);
        Gradient gradient = new Gradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        fs.gradient = gradient;
View Full Code Here

Examples of flash.swf.types.FillStyle

        return fs;
    }

    protected FillStyle createFillStyle(RadialGradientFillNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.type = FillStyle.FILL_FOCAL_RADIAL_GRADIENT;
        fs.matrix = TypeHelper.radialGradientMatrix(node, bounds);
        FocalGradient gradient = new FocalGradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        gradient.focalPoint = (float)node.focalPointRatio;
View Full Code Here

Examples of flash.swf.types.FillStyle

        return fs;
    }

    protected FillStyle createFillStyle(RadialGradientStrokeNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.type = FillStyle.FILL_FOCAL_RADIAL_GRADIENT;
        fs.matrix = TypeHelper.radialGradientMatrix(node, bounds);
        FocalGradient gradient = new FocalGradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        gradient.focalPoint = (float)node.focalPointRatio;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.