/** * Create a {@code SetBackgroundColor} tag from RGB component values. */ public SetBackgroundColorTag(short red, short green, short blue) { this(new RGB(red, green, blue)); }
/** * Create a {@code SetBackgroundColor} tag from RGB component values. */ public SetBackgroundColorTag(short red, short green, short blue) { this(new RGB(red, green, blue)); }
protected final RGB getBackgroundColor() throws InterruptedException { if (swfBackgroundColor != null) return swfBackgroundColor; int swfBackgroundColorInt = targetSettings.getDefaultBackgroundColor(); String attrBackgroundColorString = getTargetAttributes().getBackgroundColor(); if (!Strings.isNullOrEmpty(attrBackgroundColorString)) { if (project instanceof RoyaleProject) swfBackgroundColorInt = ((RoyaleProject)project).getColorAsInt(attrBackgroundColorString); else swfBackgroundColorInt = Integer.decode(attrBackgroundColorString).intValue(); } swfBackgroundColor = new RGB(swfBackgroundColorInt); return swfBackgroundColor; }
protected final RGB getBackgroundColor() throws InterruptedException { if (swfBackgroundColor != null) return swfBackgroundColor; int swfBackgroundColorInt = targetSettings.getDefaultBackgroundColor(); String attrBackgroundColorString = getTargetAttributes().getBackgroundColor(); if (!Strings.isNullOrEmpty(attrBackgroundColorString)) { if (project instanceof RoyaleProject) swfBackgroundColorInt = ((RoyaleProject)project).getColorAsInt(attrBackgroundColorString); else swfBackgroundColorInt = Integer.decode(attrBackgroundColorString).intValue(); } swfBackgroundColor = new RGB(swfBackgroundColorInt); return swfBackgroundColor; }
private RGB readRGB() { return new RGB( bitStream.readUI8(), bitStream.readUI8(), bitStream.readUI8()); }
private RGB readRGB() { return new RGB( bitStream.readUI8(), bitStream.readUI8(), bitStream.readUI8()); }
/** * return a data structure for FB integration * @return */ public ISWF getSWFTarget() { SWF swf = new SWF(); Rect rect = new Rect(getTargetSettings().getDefaultWidth(), getTargetSettings().getDefaultHeight()); swf.setFrameSize(rect); // we might need to report actual color some day swf.setBackgroundColor(new RGB(255, 255, 255)); swf.setTopLevelClass(config.getTargetFile()); return swf; }