org.jpedal.external.ImageHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenViewerFX Show documentation
Show all versions of OpenViewerFX Show documentation
Open Source (LGPL) JavaFX PDF Viewer for NetBeans plugin
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* ImageHelper.java
* ---------------
*/
package org.jpedal.external;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.IOException;
import org.jpedal.exception.PdfException;
@SuppressWarnings("ALL")
public interface ImageHelper {
BufferedImage read(byte[] data) throws IOException;
void write(BufferedImage image, String type, String file_name) throws IOException;
BufferedImage read(String file_name);
Raster readRasterFromJPeg(byte[] data) throws IOException;
BufferedImage JPEG2000ToRGBImage(byte[] data, int w, int h, int pX, int pY) throws PdfException;
}