Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.ImageLayout


     * @param hints  Optionally contains destination image layout.
     */
    public RenderedImage create(ParameterBlock args,
                                RenderingHints renderHints) {
        // Get ImageLayout from renderHints if any.
        ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);

        return new LCMSColorConvertOpImage(args.getRenderedSource(0),
                                       renderHints,
               layout,
               (ColorModel) args.getObjectParameter(0),
View Full Code Here


* Time: 10:32:08 PM
*/

public class UnlicensedOpImage extends PointOpImage {
    public UnlicensedOpImage(RenderedImage source, Map config) {
        super(source, new ImageLayout(source), config, true);
        permitInPlaceOperation();
    }
View Full Code Here

    private float angle;
    private float toSRGB[][];
    private float toLinearRGB[][];

    public HueRotateOpImage(RenderedImage source, float angle, Map config) {
        super(source, new ImageLayout(source), config, true);
        permitInPlaceOperation();
        this.angle = angle;

        ICC_ProfileRGB sRGB = (ICC_ProfileRGB) JAIContext.sRGBColorProfile;
        toSRGB = new Matrix(sRGB.getMatrix()).inverse().times(new Matrix(((ICC_ProfileRGB) JAIContext.linearProfile).getMatrix())).getArrayFloat();
View Full Code Here

import java.awt.image.DataBuffer;
import java.awt.*;

public class FrozenImage extends PlanarImage {
    static ImageLayout getsRGBImageLayout(RenderedImage image) {
        ImageLayout layout = new ImageLayout(image);
        layout.setColorModel(new ComponentColorModel(JAIContext.sRGBColorSpace, false, false,
                                                     Transparency.OPAQUE, DataBuffer.TYPE_BYTE));
        return layout;
    }
View Full Code Here

    public FrozenImage(RenderedImage image) {
        this(image, false);
    }

    public FrozenImage(RenderedImage image, boolean castTosRGB) {
        super(castTosRGB ? getsRGBImageLayout(image) : new ImageLayout(image), null, null);
        raster = new Raster[getNumXTiles()][getNumYTiles()];
        for (int x = 0; x < getNumXTiles(); x++)
            for (int y = 0; y < getNumYTiles(); y++)
                raster[x][y] = image.getTile(x, y);
    }
View Full Code Here

     * @param hints  Optionally contains destination image layout.
     */
    public RenderedImage create(ParameterBlock args,
                                RenderingHints hints) {
        // Get ImageLayout from renderHints if any.
        ImageLayout layout = RIFUtil.getImageLayoutHint(hints);


        return new LCBandCombineOpImage(args.getRenderedSource(0),
                                        hints,
                                        layout,
View Full Code Here

    private final float transform[][];
    private final boolean saturationIncrease;
    private final float[][] toLinearsRGB;

    public VibranceOpImage(RenderedImage source, float transform[][], Map config) {
        super(source, new ImageLayout(source), config, true);
        permitInPlaceOperation();
        this.transform = transform;

        saturationIncrease = transform[0][0] > 1;
View Full Code Here

     * @param paramBlock  The source image and the erosion kernel.
     */
    public RenderedImage create(ParameterBlock paramBlock,
                                RenderingHints renderHints) {
        // Get ImageLayout from renderHints if any.
        ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);


        // Get BorderExtender from renderHints if any.
        BorderExtender extender = RIFUtil.getBorderExtenderHint(renderHints);

View Full Code Here

    private final float[][] toLinearsRGB;
    private final float[] filter;
    private final float angle;

    public FilteredGrayscaleOpImage(RenderedImage source, float filter[], float angle, float strenght, Map config) {
        super(source, new ImageLayout(source), config, true);
        permitInPlaceOperation();
        ICC_ProfileRGB sRGB = (ICC_ProfileRGB) JAIContext.sRGBColorProfile;
        ICC_ProfileRGB linRGB = (ICC_ProfileRGB) JAIContext.linearProfile;
        toLinearsRGB = new Matrix(sRGB.getMatrix()).inverse().times(new Matrix(linRGB.getMatrix())).getArrayFloat();
View Full Code Here

        return y < 0 ? -angle : angle;
    }

    public IntVibranceOpImage(RenderedImage source, float transform[][], Map config) {
        super(source, new ImageLayout(source), config, true);
        permitInPlaceOperation();

        for (int i = 0; i < 3; i++)
            for (int j = 0; j < 3; j++)
                this.transform[i][j] = (int) (sMath_scale * transform[i][j]);
 
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.ImageLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.