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

org.librawfx.PrimitiveDimensionProvider Maven / Gradle / Ivy

Go to download

This installs the native lib libraw as a JavaFX Image format provider similar to imageIO before on Swing

There is a newer version: 1.8.9
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.librawfx;

import org.librawfx.dimension.DimensionProvider;
import org.librawfx.dimension.Dimension;

/**
 *
 * @author selfemp
 */
public class PrimitiveDimensionProvider implements DimensionProvider {

    @Override
    public Dimension getDimension() {
        /*UserAgent agent = new UserAgentAdapter();
        DocumentLoader loader = new DocumentLoader(agent);

        BridgeContext context = new BridgeContext(agent, loader);
        context.setDynamic(true);

        GVTBuilder builder = new GVTBuilder();
        Rectangle2D primitiveBounds = builder.build(context, document).getPrimitiveBounds();
        return new Dimension((float) primitiveBounds.getWidth(), (float) primitiveBounds.getHeight());*/
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy