|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.util.ImageUtil
Image utilities
| Field Summary | |
static String |
DEFAULT_IMAGE_TYPE
Default image type in case not provided |
| Constructor Summary | |
ImageUtil()
|
|
| Method Summary | |
static BufferedImage |
byteArrayToImage(byte[] imageData,
String imgFileName)
Method to convert byte array to image |
static int |
byteToInt(int b)
Byte to Int converter |
static BufferedImage |
generateRandomImage(int numOfPixels)
Method to generate a random image filled with noise. |
static byte[] |
imageToByteArray(BufferedImage image,
String imageFileName,
OpenStegoPlugin plugin)
Method to convert BufferedImage to byte array |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String DEFAULT_IMAGE_TYPE
| Constructor Detail |
public ImageUtil()
| Method Detail |
public static BufferedImage generateRandomImage(int numOfPixels)
throws OpenStegoException
numOfPixels - Number of pixels required in the image
OpenStegoException
public static byte[] imageToByteArray(BufferedImage image,
String imageFileName,
OpenStegoPlugin plugin)
throws OpenStegoException
image - Image dataimageFileName - Name of the image fileplugin - Reference to the plugin
OpenStegoException
public static BufferedImage byteArrayToImage(byte[] imageData,
String imgFileName)
throws OpenStegoException
imageData - Image data as byte arrayimgFileName - Name of the image file
OpenStegoExceptionpublic static int byteToInt(int b)
b - Input byte value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||