com.swfit.core.image
Class JpegToSwf
java.lang.Object
|
+--com.swfit.core.image.JpegToSwf
- public final class JpegToSwf
- extends java.lang.Object
A class for converting swf movies to the flash4 format.
This piece of code is sprinkled with notes I jotted down as I tried to figure
out the swf file format. As a starting point for learning about flash you are well
advised to start with http://www.openswf.org, and not my personal ramblings.
This code is not intended for anything more than displaying jpgs in flash movies,
which, for backwards compability, require wrapping the jpgs in swf headers and footers.
Shockwave Flash (c) is the Copyright property of Macromedia.
- Since:
- SWFIT1.0
- Version:
- $Revision: 1.1 $ $Date: 2003/02/02 20:47:25 $
- Author:
- Olaf Havnes
|
Method Summary |
static void |
encode(java.lang.String infile,
java.lang.String outfile)
Call this method with an infile (a jpeg image saved on the disk) and an outfile
(which will be the final swf movie): |
static int[] |
indexedArray()
|
static byte[] |
indexIntsToByteArray(int[] arr)
|
static int[] |
writeToIndexArray(int[] arr,
int val)
|
static int[] |
writeToIndexArray(int[] arr,
int[] vals,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegToSwf
public JpegToSwf()
encode
public static final void encode(java.lang.String infile,
java.lang.String outfile)
throws java.io.IOException
- Call this method with an infile (a jpeg image saved on the disk) and an outfile
(which will be the final swf movie):
indexedArray
public static final int[] indexedArray()
writeToIndexArray
public static final int[] writeToIndexArray(int[] arr,
int val)
writeToIndexArray
public static final int[] writeToIndexArray(int[] arr,
int[] vals,
int off,
int len)
indexIntsToByteArray
public static final byte[] indexIntsToByteArray(int[] arr)
Swfit developer homepage
Copyright © 2003 Orgdot AS. All Rights Reserved.