com.mebigfatguy.patchanim.encoders
Class MngEncoder

java.lang.Object
  extended by com.mebigfatguy.patchanim.encoders.MngEncoder

public class MngEncoder
extends java.lang.Object

generates mng files by simply relying on the built in png encoder of ImageIO and sewing together multiple chunks from the underlying pngs.


Constructor Summary
MngEncoder()
           
 
Method Summary
 boolean addFrame(java.awt.image.BufferedImage im)
           
 boolean finish()
           
 void setDelay(int ms)
           
 void setNumFrames(int frames)
           
 void setRepeat(boolean infinite)
           
 boolean start(java.io.OutputStream os)
           
 boolean start(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MngEncoder

public MngEncoder()
Method Detail

setDelay

public void setDelay(int ms)

setRepeat

public void setRepeat(boolean infinite)

setNumFrames

public void setNumFrames(int frames)

start

public boolean start(java.io.OutputStream os)

start

public boolean start(java.lang.String file)

finish

public boolean finish()

addFrame

public boolean addFrame(java.awt.image.BufferedImage im)


Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.