Steganos  1.0
Steganography for Processing
 All Classes Functions
org.quark.stegnos.SteganosUtil Class Reference

Static Public Member Functions

static boolean hasAlpha (PImage img)
 
static byte[] getUTF8array (String burden)
 
static int[] convertByteToIntArray (byte[] bytes, int nbrBytes)
 
static byte[] convertIntToByteArray (int[] data, int nbrBytes)
 
static String binary (int n)
 
static String binary (long n)
 
static void printImage (String text, PImage img)
 
static void printImage (String text, int[] n)
 
static void print (String text, int n)
 
static void print (String text, long n)
 

Detailed Description

Provides a range of utility methods for this library.

Author
Peter Lager

Member Function Documentation

static int [] org.quark.stegnos.SteganosUtil.convertByteToIntArray ( byte[]  bytes,
int  nbrBytes 
)
static

Create an integer array from a byte array.
This will pack an array of bytes into an array of integers. It is used to prepare text for inserting into the carrier image.

static byte [] org.quark.stegnos.SteganosUtil.convertIntToByteArray ( int[]  data,
int  nbrBytes 
)
static

Create a byte array from an integer array. Used when retrieving text from a stegan.

An integer array is created when first retrieving a text burden. This method can be used to unpack the bytes into a byte array

static byte [] org.quark.stegnos.SteganosUtil.getUTF8array ( String  burden)
static

Convert a String burden to UTF-8 byte array

static boolean org.quark.stegnos.SteganosUtil.hasAlpha ( PImage  img)
static

Detect whether an image has transparent pixels ie.e Alpha != 0xFF


The documentation for this class was generated from the following file: