Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.movie
Class Image.JPEG  view Image.JPEG download Image.JPEG.java

java.lang.Object
  extended bycom.anotherbigidea.flash.movie.Symbol
      extended bycom.anotherbigidea.flash.movie.Image
          extended bycom.anotherbigidea.flash.movie.Image.JPEG
Enclosing class:
Image

public static class Image.JPEG
extends Image

A JPEG Image that can be used as a fill for Shapes. The JPEG image must be "baseline" - a "progressive" JPEG will cause the Flash player to have runtime problems.


Nested Class Summary
 
Nested classes inherited from class com.anotherbigidea.flash.movie.Image
Image.JPEG, Image.Lossless
 
Field Summary
protected  byte[] jpegData
           
protected  java.io.InputStream jpegIn
           
 
Fields inherited from class com.anotherbigidea.flash.movie.Symbol
id
 
Constructor Summary
Image.JPEG(byte[] imageData)
          Construct a JPEG image from byte data.
Image.JPEG(java.io.InputStream jpegImage)
          A JPEG image that will read from an input stream.
 
Method Summary
protected  int defineSymbol(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter, com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
          Override to provide symbol definition
 byte[] getImageData()
          Get the raw image data.
 
Methods inherited from class com.anotherbigidea.flash.movie.Symbol
define, getId, getNextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpegIn

protected java.io.InputStream jpegIn

jpegData

protected byte[] jpegData
Constructor Detail

Image.JPEG

public Image.JPEG(java.io.InputStream jpegImage)
A JPEG image that will read from an input stream.


Image.JPEG

public Image.JPEG(byte[] imageData)
Construct a JPEG image from byte data. Note that the data must include the JPEG header ( 0xff,0xd9,0xff,0xd8 ).

Method Detail

getImageData

public byte[] getImageData()
Get the raw image data. This will include the JPEG stream header(s) ( 0xff,0xd9,0xff,0xd8 ).


defineSymbol

protected int defineSymbol(Movie movie,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
                    throws java.io.IOException
Description copied from class: Symbol
Override to provide symbol definition

Specified by:
defineSymbol in class Symbol