O2Plib.image
Class PixWriter

java.lang.Object
  extended by O2Plib.image.PixWriter

public class PixWriter
extends java.lang.Object


Field Summary
 boolean dbugFlag
          To track additional loading info
static java.lang.String VERSION
          Version for this module
 
Constructor Summary
PixWriter()
          PixWriter() - Constructor to use when reading an image file
 
Method Summary
 void setDebugFlag(boolean dbugFlag)
          setDebugFlag() - flag to track additional loading info
static boolean writePixFile(char[] pix, boolean scaleToMaxFlag, java.lang.String pixFile, int pixWidth, int pixHeight)
          writePixFile() - write image buffer pix to a GIF or JPEG file.
static boolean writePixFile(int[] pix, boolean scaleToMaxFlag, java.lang.String pixFile, int pixWidth, int pixHeight)
          writePixFile() - write image buffer pix to a GIF or JPEG file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version for this module

See Also:
Constant Field Values

dbugFlag

public boolean dbugFlag
To track additional loading info

Constructor Detail

PixWriter

public PixWriter()
PixWriter() - Constructor to use when reading an image file

Method Detail

setDebugFlag

public void setDebugFlag(boolean dbugFlag)
setDebugFlag() - flag to track additional loading info

Parameters:
dbugFlag - - debug flag status

writePixFile

public static boolean writePixFile(int[] pix,
                                   boolean scaleToMaxFlag,
                                   java.lang.String pixFile,
                                   int pixWidth,
                                   int pixHeight)
writePixFile() - write image buffer pix to a GIF or JPEG file. If there are > 8-bits/pixel then scale data to 8-bits

Parameters:
pix - is the input image buffer
scaleToMaxFlag - is true if scale max of image to 255
pixFile, - is the full path for output file name
pixWidth - is the image width
pixHeight - is the image height
Returns:
true if succeed

writePixFile

public static boolean writePixFile(char[] pix,
                                   boolean scaleToMaxFlag,
                                   java.lang.String pixFile,
                                   int pixWidth,
                                   int pixHeight)
writePixFile() - write image buffer pix to a GIF or JPEG file. If there are > 8-bits/pixel then scale data to 8-bits

Parameters:
pix - is the input image buffer
scaleToMaxFlag - is true if scale max of image to 255
pixFile, - is the full path for output file name
pixWidth - is the image width
pixHeight - is the image height
Returns:
true if succeed