public class ImageUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
createBufferedImage(PixelData pixelData)
Create a buffered image from the given
PixelData |
static java.nio.ByteBuffer |
createImageDataBuffer(PixelData pixelData,
java.lang.String mimeType)
Creates the byte buffer containing the image data for the given
pixel data, with the given MIME type.
|
static void |
main(java.lang.String[] args) |
public static java.awt.image.BufferedImage createBufferedImage(PixelData pixelData)
PixelDatapixelData - The PixelDatapublic static java.nio.ByteBuffer createImageDataBuffer(PixelData pixelData, java.lang.String mimeType)
"image/png" or
"image/gif" or "image/jpeg" (not
"image/jpg"!).null is returned.pixelData - The PixelDatamimeType - The MIME typejava.lang.IllegalArgumentException - If the MIME type is not one of the
types listed abovepublic static void main(java.lang.String[] args)
Copyright © 2022. All Rights Reserved.