diagapplet.utils
Class SaveImage

java.lang.Object
  extended by diagapplet.utils.SaveImage

public class SaveImage
extends java.lang.Object

Set of utilities for saving images.


Nested Class Summary
static class SaveImage.BAYER_PATTERN
           
 
Constructor Summary
SaveImage()
           
 
Method Summary
static byte[] bayer_NearestNeighbor(byte[] bayer, int width, int height, SaveImage.BAYER_PATTERN pattern)
           
static java.awt.image.BufferedImage BayerByteArrayToImage(byte[] ba, int width, int height)
           
static java.awt.image.BufferedImage BayerByteArrayToImage(byte[] bayer_ba, int width, int height, SaveImage.BAYER_PATTERN pattern)
           
static java.awt.image.BufferedImage ByteArrayToImage(byte[] ba, int width, int height)
           
static void SaveImageAs(java.awt.Image img, java.awt.Component parent)
           
static void SaveImageFileBySuffix(java.awt.Image img_in, java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveImage

public SaveImage()
Method Detail

bayer_NearestNeighbor

public static byte[] bayer_NearestNeighbor(byte[] bayer,
                                           int width,
                                           int height,
                                           SaveImage.BAYER_PATTERN pattern)

BayerByteArrayToImage

public static java.awt.image.BufferedImage BayerByteArrayToImage(byte[] bayer_ba,
                                                                 int width,
                                                                 int height,
                                                                 SaveImage.BAYER_PATTERN pattern)
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

ByteArrayToImage

public static java.awt.image.BufferedImage ByteArrayToImage(byte[] ba,
                                                            int width,
                                                            int height)
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

BayerByteArrayToImage

public static java.awt.image.BufferedImage BayerByteArrayToImage(byte[] ba,
                                                                 int width,
                                                                 int height)
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

SaveImageAs

public static void SaveImageAs(java.awt.Image img,
                               java.awt.Component parent)

SaveImageFileBySuffix

public static void SaveImageFileBySuffix(java.awt.Image img_in,
                                         java.lang.String filename)
                                  throws java.io.IOException
Throws:
java.io.IOException