All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.images.ImageLibrary Maven / Gradle / Ivy

The newest version!
/*
 * ===========================================
 * 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@
 *
 * ---------------
 * ImageLibrary.java
 * ---------------
 */
package org.jpedal.images;

import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.File;
import java.io.IOException;

/**
 *
 * @author markee
 */
public interface ImageLibrary {

    void write(BufferedImage img, String jpg, String string, boolean b) throws IOException ;

    byte[] JBIGDecode(byte[] data, byte[] globalData, String temp_dir) throws Exception;

    byte[] getUnconvertedBytesFromJPEG2000(byte[] data) throws Exception;

    void processJPEG(int dim, byte[] data, int p, int[] maskArray, int[] output);

    byte[] getBytesFromJPEG(byte[] data) throws Exception;

    BufferedImage read(File baseFile) throws Exception;

    int[] convertCMYKtoRGB(int cc, int mm, int yy, int kk);

    byte[] convertCMYK2RGB(int w, int h, int pixelCount, byte[] data);

    BufferedImage convert(byte[] buffer, int w, int h);

    byte[] getUnconvertedBytesFromJPEG(byte[] data, int adobeColorTransform) throws Exception;

    BufferedImage convert(Raster ras, int w, int h);

    byte[] getBytesFromJPEG(boolean inverted, byte[] data, boolean mask) throws Exception;

    int getTiffPageCount(String file);

    BufferedImage JPEG2000ToRGBImage(byte[] data) throws Exception;

    BufferedImage getTiffImage(int tiffImageToLoad, String file);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy