diagapplet.utils
Class SaveImage
java.lang.Object
diagapplet.utils.SaveImage
public class SaveImage
- extends java.lang.Object
Set of utilities for saving images.
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 |
SaveImage
public SaveImage()
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