Examples of RGBA


Examples of org.apache.flex.swf.types.RGBA

     */
    private MorphLineStyle readMorphLineStyle()
    {
        final int startWidth = bitStream.readUI16();
        final int endWidth = bitStream.readUI16();
        final RGBA startColor = readRGBA();
        final RGBA endColor = readRGBA();

        final MorphLineStyle result = new MorphLineStyle();
        result.setStartWidth(startWidth);
        result.setEndWidth(endWidth);
        result.setStartColor(startColor);
View Full Code Here

Examples of org.apache.flex.swf.types.RGBA

        int argb = rgb | (a << 24);
        return argb;
    }
   
    public static RGBA splitColor(int alphacolor) {
        return new RGBA((alphacolor & 0xFF0000) >> 16, (alphacolor & 0xFF00) >> 8, alphacolor & 0xFF, (alphacolor & 0xFF000000) >> 24);
    }
View Full Code Here

Examples of org.apache.flex.swf.types.RGBA

        GradientBevelFilter filter = new GradientBevelFilter();
        if (node.entries != null)
        {
            byte count = (byte)node.entries.size();
            filter.setNumColors(count);
            RGBA gradientColors[] = new RGBA[count];
            int gradientRatios[] = new int[count];
            filter.setGradientColors(gradientColors);
            filter.setGradientRatio(gradientRatios);

            GradRecord[] records = createGradRecords(node.entries);
            for (int i = 0; i < records.length; i++)
            {
                GradRecord record = records[i];
                RGB color = record.getColor();
                if (color instanceof RGBA)
                    gradientColors[i] = (RGBA)color;
                else
                    gradientColors[i] = new RGBA(color.getRed(), color.getGreen(), color.getBlue(), 0xFF);
                gradientRatios[i] = record.getRatio();
            }
        }

        filter.setAngle((float)(node.angle*Math.PI/180.0));
 
View Full Code Here

Examples of org.apache.flex.swf.types.RGBA

        if (node.entries != null)
        {
            byte count = (byte)node.entries.size();
            filter.setNumColors(count);
            RGBA gradientColors[] = new RGBA[count];
            int gradientRatio[] = new int[count];

            GradRecord[] records = createGradRecords(node.entries);
            for (int i = 0; i < records.length; i++)
            {
                GradRecord record = records[i];
                RGB color = record.getColor();
                if (color instanceof RGBA)
                    gradientColors[i] = (RGBA)color;
                else
                    gradientColors[i] = new RGBA(color.getRed(), color.getGreen(), color.getBlue(), 0xFF);
                gradientRatio[i] = record.getRatio();
            }
            filter.setGradientColors(gradientColors);
            filter.setGradientRatio(gradientRatio);
        }
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.RGBA

    final Flag html = parseFlag(parser, 0x00006, "DefineEditText::HTML");
    final Flag useOutlines = parseFlag(parser, 0x00006, "DefineEditText::UseOutlines");
    final UINT16 fontID = parseUINT16If(parser, 0x00006, hasFont, "DefineEditText::FontID");
    final AsciiString fontClass = parseStringIf(parser, 0x00006, hasFontClass, "DefineEditText::FontClass");
    final UINT16 fontHeight = parseUINT16If(parser, 0x00006, hasFont, "DefineEditText::FontHeight");
    final RGBA textColor = RGBAParser.parseIf(parser, hasTextColor, "DefineEditText::TextColor");
    final UINT16 maxLength = parseUINT16If(parser, 0x00006, hasMaxLength, "DefineEditText::MaxLength");
    final UINT8 align = parseUINT8If(parser, 0x00006, hasLayout, "DefineEditText::Align");
    final UINT16 leftMargin = parseUINT16If(parser, 0x00006, hasLayout, "DefineEditText::LeftMargin");
    final UINT16 rightMargin = parseUINT16If(parser, 0x00006, hasLayout, "DefineEditText::RightMargin");
    final UINT16 indent = parseUINT16If(parser, 0x00006, hasLayout, "DefineEditText::Indent");
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.RGBA

    addNode("Alpha", getUserObject().getAlpha());
  }

  @Override
  public String toString() {
    final RGBA rgb = getUserObject();

    return String.format("%s: RGB (#%02X%02X%02X%02X)", getName(), rgb.getRed().value(), rgb.getGreen().value(), rgb.getBlue().value(), rgb.getAlpha().value());
  }
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.