FreeHEP API
Version v1.2

org.freehep.graphicsio.swf
Class ColorXform

java.lang.Object
  |
  +--org.freehep.graphicsio.swf.ColorXform

public class ColorXform
extends Object

SWF Color Transform

Version:
$Id: ColorXform.java,v 1.3 2002/03/06 15:58:03 duns Exp $
Author:
Mark Donszelmann, Charles Loomis

Constructor Summary
ColorXform(int rx, int gx, int bx, int ax, int rp, int gp, int bp, int ap)
           
ColorXform(SWFInputStream swf, boolean hasAlpha)
          Read a color transform from the stream.
 
Method Summary
 String toString()
           
 Color transform(Color c)
           
 void write(SWFOutputStream swf, boolean hasAlpha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorXform

public ColorXform(int rx,
                  int gx,
                  int bx,
                  int ax,
                  int rp,
                  int gp,
                  int bp,
                  int ap)

ColorXform

public ColorXform(SWFInputStream swf,
                  boolean hasAlpha)
           throws IOException
Read a color transform from the stream.

Method Detail

transform

public Color transform(Color c)

write

public void write(SWFOutputStream swf,
                  boolean hasAlpha)
           throws IOException
IOException

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.