net.sourceforge.lentikit
Class Interleaver

java.lang.Object
  extended bynet.sourceforge.lentikit.Interleaver

public class Interleaver
extends java.lang.Object

Takes a list of images and reads some java properties defining the printer and lenticular setup interleaves the images in the order presented into a single output file at the resolution specified. Pretty rough at the moment, the GUI should take care of the less delicate command line issues.


Field Summary
static net.sourceforge.lentikit.Interleaver.GUIFlag NO_PROGRESS_WINDOW
           
static net.sourceforge.lentikit.Interleaver.GUIFlag SHOW_PROGRESS_WINDOW
           
 
Constructor Summary
Interleaver()
          The object that has information about the borders
 
Method Summary
 void addAlignmentStrips(java.awt.image.BufferedImage img, InterleaveConfiguration cfg, java.awt.Insets calibrationBorderSizes)
          Puts some alignment bands around the passed in image.
 java.awt.image.BufferedImage getImageFromList(java.util.List images, int number)
          Retrieves the object at index number in the images list parameter and attempts to return an image, will utilise the BufferedImageStore if it has to load in a file.
 java.awt.image.BufferedImage getInterleavedImage(java.util.List images, InterleaveConfiguration cfg)
          Returns an interleaved image, will show progress monitor while it is doing it.
 java.awt.image.BufferedImage getInterleavedImage(java.util.List images, InterleaveConfiguration cfg, net.sourceforge.lentikit.Interleaver.GUIFlag showProgressWindowFlag)
          Returns an interleaved image, will show progress monitor if showProgressWindowFlag is set appropriately.
 java.awt.image.BufferedImage scaleImageForInterleave(java.awt.image.BufferedImage im, InterleaveConfiguration cfg)
          Will resize the image in accordance with the scaleImages and keepAspectRatio flags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PROGRESS_WINDOW

public static final net.sourceforge.lentikit.Interleaver.GUIFlag NO_PROGRESS_WINDOW

SHOW_PROGRESS_WINDOW

public static final net.sourceforge.lentikit.Interleaver.GUIFlag SHOW_PROGRESS_WINDOW
Constructor Detail

Interleaver

public Interleaver()
The object that has information about the borders

Method Detail

getImageFromList

public java.awt.image.BufferedImage getImageFromList(java.util.List images,
                                                     int number)
Retrieves the object at index number in the images list parameter and attempts to return an image, will utilise the BufferedImageStore if it has to load in a file. Handles Image, File, BufferedImageCreator


getInterleavedImage

public java.awt.image.BufferedImage getInterleavedImage(java.util.List images,
                                                        InterleaveConfiguration cfg)
Returns an interleaved image, will show progress monitor while it is doing it. Delegates to three arg version.


getInterleavedImage

public java.awt.image.BufferedImage getInterleavedImage(java.util.List images,
                                                        InterleaveConfiguration cfg,
                                                        net.sourceforge.lentikit.Interleaver.GUIFlag showProgressWindowFlag)
Returns an interleaved image, will show progress monitor if showProgressWindowFlag is set appropriately. images - a list of BufferdImageCreators, if null image is treated as background colour.


addAlignmentStrips

public void addAlignmentStrips(java.awt.image.BufferedImage img,
                               InterleaveConfiguration cfg,
                               java.awt.Insets calibrationBorderSizes)
Puts some alignment bands around the passed in image. Uses the calibrationBorderSizes. The alignment stripes are one pixel wide and placed either on the center, or left of center (for the right eye).


scaleImageForInterleave

public java.awt.image.BufferedImage scaleImageForInterleave(java.awt.image.BufferedImage im,
                                                            InterleaveConfiguration cfg)
Will resize the image in accordance with the scaleImages and keepAspectRatio flags



Copyright © 2004 Sourceforge. All Rights Reserved.