public final class ImageDataFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ImageData |
create(byte[] bytes) |
static ImageData |
create(byte[] bytes,
boolean recoverImage) |
static ImageData |
create(Image image,
Color color)
Gets an instance of an Image from a java.awt.Image
|
static ImageData |
create(Image image,
Color color,
boolean forceBW)
Gets an instance of an Image from a java.awt.Image.
|
static ImageData |
create(int width,
int height,
boolean reverseBits,
int typeCCITT,
int parameters,
byte[] data,
int[] transparency) |
static ImageData |
create(int width,
int height,
int components,
int bpc,
byte[] data,
int[] transparency) |
static ImageData |
create(String filename) |
static ImageData |
create(String filename,
boolean recoverImage) |
static ImageData |
create(URL url) |
static ImageData |
create(URL url,
boolean recoverImage) |
static ImageData |
createBmp(byte[] bytes,
boolean noHeader,
int size) |
static ImageData |
createBmp(URL url,
boolean noHeader,
int size) |
static GifImageData |
createGif(byte[] bytes)
Return a GifImage object.
|
static ImageData |
createGifFrame(byte[] bytes,
int frame)
Returns a specified frame of the gif image
|
static ImageData |
createGifFrame(URL url,
int frame)
Returns a specified frame of the gif image
|
static List<ImageData> |
createGifFrames(byte[] bytes)
Returns
List of gif image frames |
static List<ImageData> |
createGifFrames(byte[] bytes,
int[] frameNumbers)
Returns
List of gif image frames |
static List<ImageData> |
createGifFrames(URL url)
Returns
List of gif image frames |
static List<ImageData> |
createGifFrames(URL url,
int[] frameNumbers)
Returns
List of gif image frames |
static ImageData |
createJbig2(byte[] bytes,
int page) |
static ImageData |
createJbig2(URL url,
int page) |
static ImageData |
createJpeg(byte[] bytes) |
static ImageData |
createJpeg(URL url) |
static ImageData |
createJpeg2000(byte[] bytes) |
static ImageData |
createJpeg2000(URL url) |
static ImageData |
createPng(byte[] bytes) |
static ImageData |
createPng(URL url) |
static ImageData |
createRawImage(byte[] bytes) |
static ImageData |
createTiff(byte[] bytes,
boolean recoverFromImageError,
int page,
boolean direct) |
static ImageData |
createTiff(URL url,
boolean recoverFromImageError,
int page,
boolean direct) |
public static ImageData create(byte[] bytes, boolean recoverImage)
public static ImageData create(byte[] bytes)
public static ImageData create(String filename, boolean recoverImage) throws MalformedURLException
MalformedURLExceptionpublic static ImageData create(String filename) throws MalformedURLException
MalformedURLExceptionpublic static ImageData create(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int[] transparency)
public static ImageData create(int width, int height, int components, int bpc, byte[] data, int[] transparency)
public static ImageData create(Image image, Color color) throws IOException
image - the java.awt.Image to convertcolor - if different from null the transparency pixels are replaced by this colorIOExceptionpublic static ImageData create(Image image, Color color, boolean forceBW) throws IOException
image - the java.awt.Image to convertcolor - if different from null the transparency pixels are replaced by this colorforceBW - if true the image is treated as black and whiteIOExceptionpublic static ImageData createBmp(byte[] bytes, boolean noHeader, int size)
public static GifImageData createGif(byte[] bytes)
bytes - public static ImageData createGifFrame(URL url, int frame)
url - url of gif imageframe - number of frame to be returnedpublic static ImageData createGifFrame(byte[] bytes, int frame)
bytes - byte array of gif imageframe - number of frame to be returnedpublic static List<ImageData> createGifFrames(byte[] bytes, int[] frameNumbers)
List of gif image framesbytes - byte array of gif imageframeNumbers - array of frame numbers of gif imagepublic static List<ImageData> createGifFrames(URL url, int[] frameNumbers)
List of gif image framesurl - url of gif imageframeNumbers - array of frame numbers of gif imagepublic static List<ImageData> createGifFrames(byte[] bytes)
List of gif image framesbytes - byte array of gif imagepublic static List<ImageData> createGifFrames(URL url)
List of gif image framesurl - url of gif imagepublic static ImageData createJbig2(byte[] bytes, int page)
public static ImageData createJpeg(byte[] bytes)
public static ImageData createJpeg2000(byte[] bytes)
public static ImageData createPng(byte[] bytes)
public static ImageData createTiff(URL url, boolean recoverFromImageError, int page, boolean direct)
public static ImageData createTiff(byte[] bytes, boolean recoverFromImageError, int page, boolean direct)
public static ImageData createRawImage(byte[] bytes)
Copyright © 1998–2016 iText Group NV. All rights reserved.