public class JDeliHelper extends Object
| Constructor and Description |
|---|
JDeliHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertCMYK2RGB(int w,
int h,
int pixelCount,
byte[] data) |
static int[] |
convertCMYKtoRGB(int cc,
int mm,
int yy,
int kk) |
static byte[] |
getBytesFromJPEG(boolean isInverted,
byte[] data,
boolean isMask) |
static byte[] |
getBytesFromJPEG(byte[] data) |
static int |
getDicomFrameCount(String fn) |
static BufferedImage |
getDicomImage(byte[] data) |
static BufferedImage |
getDicomImage(String fn,
int frameNumber) |
static BufferedImage |
getPsdImage(String fileName) |
static byte[] |
getScaledBytes(byte[] src,
int srcWidth,
int srcHeight,
int dstWidth,
int dstHeight,
int nComp) |
static BufferedImage |
getScaledImage(BufferedImage srcImage,
int dstWidth,
int dstHeight) |
static BufferedImage |
getSGIImage(byte[] data) |
static BufferedImage |
getSGIImage(File data) |
static BufferedImage |
getTiffImage(int tiffImageToLoad,
String file) |
static int |
getTiffPageCount(String file) |
static byte[] |
getUnconvertedBytesFromJPEG(byte[] data) |
static byte[] |
getUnconvertedBytesFromJPEG(byte[] data,
int adobeColorTransform) |
static byte[] |
getUnconvertedBytesFromJPEG2000(byte[] data) |
static BufferedImage |
JPEG2000ToRGBImage(byte[] data)
convert byte[] datastream JPEG to an image in RGB
|
static void |
processJPEG(int dim,
byte[] data,
int p,
int[] maskArray,
int[] output) |
static BufferedImage |
read(File f) |
static void |
write(BufferedImage image,
String type,
String file_name,
boolean fasterPNG) |
public static void processJPEG(int dim,
byte[] data,
int p,
int[] maskArray,
int[] output)
public static BufferedImage JPEG2000ToRGBImage(byte[] data) throws PdfException
PdfExceptionpublic static BufferedImage getDicomImage(byte[] data) throws Exception
Exceptionpublic static int[] convertCMYKtoRGB(int cc,
int mm,
int yy,
int kk)
public static byte[] convertCMYK2RGB(int w,
int h,
int pixelCount,
byte[] data)
public static byte[] getBytesFromJPEG(boolean isInverted,
byte[] data,
boolean isMask)
throws Exception
Exceptionpublic static byte[] getUnconvertedBytesFromJPEG2000(byte[] data)
throws Exception
Exceptionpublic static byte[] getUnconvertedBytesFromJPEG(byte[] data)
throws Exception
Exceptionpublic static byte[] getUnconvertedBytesFromJPEG(byte[] data,
int adobeColorTransform)
throws Exception
Exceptionpublic static byte[] getBytesFromJPEG(byte[] data)
throws Exception
Exceptionpublic static BufferedImage getTiffImage(int tiffImageToLoad, String file)
public static BufferedImage getPsdImage(String fileName)
public static int getTiffPageCount(String file)
public static void write(BufferedImage image, String type, String file_name, boolean fasterPNG) throws IOException
IOExceptionpublic static int getDicomFrameCount(String fn)
public static BufferedImage getDicomImage(String fn, int frameNumber) throws Exception
Exceptionpublic static byte[] getScaledBytes(byte[] src,
int srcWidth,
int srcHeight,
int dstWidth,
int dstHeight,
int nComp)
public static BufferedImage getScaledImage(BufferedImage srcImage, int dstWidth, int dstHeight)
public static BufferedImage getSGIImage(byte[] data) throws Exception
Exceptionpublic static BufferedImage getSGIImage(File data) throws Exception
Exceptionpublic static BufferedImage read(File f) throws Exception
ExceptionCopyright © 2017. All rights reserved.