|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.util.ImageUtils
public final class ImageUtils
Utility methods for working with images.
| Method Summary | |
|---|---|
static void |
imageToBwBitmap(java.awt.image.BufferedImage image,
java.nio.ByteBuffer buffer)
Use a BufferedImage to create black and white bitmap data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void imageToBwBitmap(java.awt.image.BufferedImage image,
java.nio.ByteBuffer buffer)
BufferedImage to create black and white bitmap data.
Bytes are output to the supplied buffer where each bit
represents a single pixel. 0 represents a white pixel, 1 represents
a black pixel. The leftmost pixel is in the most significant bit
of the byte..so bit 8 of byte 0 represents the pixel at (0, 0).
Bit 7 of byte 1 represents the pixel at (9, 0).
image - The image to create bitmap data for.buffer - The buffer to output bitmap data to.
SMPPRuntimeException - If there is insufficient space in
the buffer to contain the bitmap data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||