StarOffice 5.2 API
reverse engineered by classdoc

com.sun.star.lib.image
Class DibEncoder

java.lang.Object
  |
  +--java.util.Observable
        |
        +--com.sun.star.lib.image.DibEncoder
All Implemented Interfaces:
java.awt.image.ImageConsumer

public synchronized class DibEncoder
extends java.util.Observable
implements java.awt.image.ImageConsumer


Field Summary
private static boolean DEBUG
           
private  boolean RGBfallBack
           
(package private) static byte[] a
           
(package private)  int alphaMask
           
(package private)  byte[] alphas
           
(package private) static byte[] b
           
(package private) static short[] bitTab
           
(package private) static byte[] bits
           
private  short bitsPerPixel
           
(package private) static byte[] cbits
           
private  java.awt.image.ColorModel colorModel
           
private  com.sun.star.lib.image.BitmapFileHeader fileHeader
           
(package private) static byte[] g
           
private  boolean hasMask
           
private  int height
           
private  com.sun.star.lib.image.BitmapInfoHeader infoHeader
           
(package private) static com.sun.star.lib.image.Palette maskPalette
           
private  byte[] mskData
           
private  int mskLineBytes
           
private  com.sun.star.lib.image.Palette palette
           
private  byte[] pixData
           
private  int pixLineBytes
           
(package private) static byte[] r
           
 java.awt.Rectangle refreshed
           
private  int width
           
 
Fields inherited from class java.util.Observable
arr, changed, obs
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
DibEncoder()
           
 
Method Summary
private static void DEBUG(java.lang.String s)
           
 void dispose()
           
private  int[] expandToRGB()
           
 void flush()
           
 boolean hasMask()
           
 void imageComplete(int i)
           
private  void reduceByte(int i1, int i2, int i3, int i4, byte[] b, int i5, int i6)
           
private  void reduceByte1(int i1, int i2, int i3, int i4, byte[] b, int i5, int i6)
           
private  void reduceByte4(int i1, int i2, int i3, int i4, byte[] b, int i5, int i6)
           
private  void reduceByte8(int i1, int i2, int i3, int i4, byte[] b, int i5, int i6)
           
private  void reduceInt(int i1, int i2, int i3, int i4, int[] i5, int i6, int i7)
           
private  void reduceInt24(int i1, int i2, int i3, int i4, int[] i5, int i6, int i7)
           
private  void reduceRGB(int i1, int i2, int i3, int i4, byte[] b, int i5, int i6, java.awt.image.ColorModel cm)
           
private  void reduceRGB(int i1, int i2, int i3, int i4, int[] i5, int i6, int i7, java.awt.image.ColorModel cm)
           
 void setColorModel(java.awt.image.ColorModel cm)
           
 void setDimensions(int i1, int i2)
           
 void setHints(int i)
           
 void setPixels(int i1, int i2, int i3, int i4, java.awt.image.ColorModel cm, byte[] b, int i5, int i6)
           
 void setPixels(int i1, int i2, int i3, int i4, java.awt.image.ColorModel cm, int[] i5, int i6, int i7)
           
 void setProperties(java.util.Hashtable h)
           
 void writeMaskData(java.io.DataOutput do)
           
 void writePixelData(java.io.DataOutput do)
           
 void xsetColorModel(java.awt.image.ColorModel cm)
           
 void xxsetColorModel(java.awt.image.ColorModel cm)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG

RGBfallBack

private boolean RGBfallBack

a

static final byte[] a

alphaMask

int alphaMask

alphas

byte[] alphas

b

static final byte[] b

bitTab

static final short[] bitTab

bits

static final byte[] bits

bitsPerPixel

private short bitsPerPixel

cbits

static final byte[] cbits

colorModel

private java.awt.image.ColorModel colorModel

fileHeader

private com.sun.star.lib.image.BitmapFileHeader fileHeader

g

static final byte[] g

hasMask

private boolean hasMask

height

private int height

infoHeader

private com.sun.star.lib.image.BitmapInfoHeader infoHeader

maskPalette

static final com.sun.star.lib.image.Palette maskPalette

mskData

private byte[] mskData

mskLineBytes

private int mskLineBytes

palette

private com.sun.star.lib.image.Palette palette

pixData

private byte[] pixData

pixLineBytes

private int pixLineBytes

r

static final byte[] r

refreshed

public java.awt.Rectangle refreshed

width

private int width
Constructor Detail

DibEncoder

public DibEncoder()
Method Detail

DEBUG

private static final void DEBUG(java.lang.String s)

dispose

public void dispose()

expandToRGB

private int[] expandToRGB()

flush

public void flush()

hasMask

public boolean hasMask()

imageComplete

public void imageComplete(int i)
Specified by:
imageComplete in interface java.awt.image.ImageConsumer

reduceByte

private final void reduceByte(int i1,
                              int i2,
                              int i3,
                              int i4,
                              byte[] b,
                              int i5,
                              int i6)

reduceByte1

private final void reduceByte1(int i1,
                               int i2,
                               int i3,
                               int i4,
                               byte[] b,
                               int i5,
                               int i6)

reduceByte4

private final void reduceByte4(int i1,
                               int i2,
                               int i3,
                               int i4,
                               byte[] b,
                               int i5,
                               int i6)

reduceByte8

private final void reduceByte8(int i1,
                               int i2,
                               int i3,
                               int i4,
                               byte[] b,
                               int i5,
                               int i6)

reduceInt

private final void reduceInt(int i1,
                             int i2,
                             int i3,
                             int i4,
                             int[] i5,
                             int i6,
                             int i7)

reduceInt24

private final void reduceInt24(int i1,
                               int i2,
                               int i3,
                               int i4,
                               int[] i5,
                               int i6,
                               int i7)

reduceRGB

private final void reduceRGB(int i1,
                             int i2,
                             int i3,
                             int i4,
                             byte[] b,
                             int i5,
                             int i6,
                             java.awt.image.ColorModel cm)

reduceRGB

private final void reduceRGB(int i1,
                             int i2,
                             int i3,
                             int i4,
                             int[] i5,
                             int i6,
                             int i7,
                             java.awt.image.ColorModel cm)

setColorModel

public void setColorModel(java.awt.image.ColorModel cm)
Specified by:
setColorModel in interface java.awt.image.ImageConsumer

setDimensions

public void setDimensions(int i1,
                          int i2)
Specified by:
setDimensions in interface java.awt.image.ImageConsumer

setHints

public void setHints(int i)
Specified by:
setHints in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int i1,
                      int i2,
                      int i3,
                      int i4,
                      java.awt.image.ColorModel cm,
                      byte[] b,
                      int i5,
                      int i6)
Specified by:
setPixels in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int i1,
                      int i2,
                      int i3,
                      int i4,
                      java.awt.image.ColorModel cm,
                      int[] i5,
                      int i6,
                      int i7)
Specified by:
setPixels in interface java.awt.image.ImageConsumer

setProperties

public void setProperties(java.util.Hashtable h)
Specified by:
setProperties in interface java.awt.image.ImageConsumer

writeMaskData

public void writeMaskData(java.io.DataOutput do)
                   throws java.io.IOException

writePixelData

public void writePixelData(java.io.DataOutput do)
                    throws java.io.IOException

xsetColorModel

public void xsetColorModel(java.awt.image.ColorModel cm)

xxsetColorModel

public void xxsetColorModel(java.awt.image.ColorModel cm)

StarOffice 5.2 API
reverse engineered by classdoc