org.apache.sanselan.formats.bmp.writers
Class BMPWriterPalette

java.lang.Object
  extended by org.apache.sanselan.formats.bmp.writers.BMPWriter
      extended by org.apache.sanselan.formats.bmp.writers.BMPWriterPalette

public class BMPWriterPalette
extends BMPWriter


Constructor Summary
BMPWriterPalette(SimplePalette palette)
           
 
Method Summary
 int getBitsPerPixel()
           
 byte[] getImageData(java.awt.image.BufferedImage src)
           
 int getPaletteSize()
           
 void writePalette(BinaryOutputStream bos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMPWriterPalette

public BMPWriterPalette(SimplePalette palette)
Method Detail

getPaletteSize

public int getPaletteSize()
Specified by:
getPaletteSize in class BMPWriter

getBitsPerPixel

public int getBitsPerPixel()
Specified by:
getBitsPerPixel in class BMPWriter

writePalette

public void writePalette(BinaryOutputStream bos)
                  throws java.io.IOException
Specified by:
writePalette in class BMPWriter
Throws:
java.io.IOException

getImageData

public byte[] getImageData(java.awt.image.BufferedImage src)
Specified by:
getImageData in class BMPWriter


Copyright © 2007-2009. All Rights Reserved.