Search in sources :

Example 31 with SimpleImage

use of org.jwildfire.image.SimpleImage in project JWildfire by thargor6.

the class ImagePanel method setImage.

public void setImage(SimpleImage pSimpleImage) {
    SimpleImage img = preProcessImage(pSimpleImage);
    setImage(img, 0, 0, img.getImageWidth());
}
Also used : SimpleImage(org.jwildfire.image.SimpleImage)

Example 32 with SimpleImage

use of org.jwildfire.image.SimpleImage in project JWildfire by thargor6.

the class ImageLoader method execute.

public SimpleImage execute() {
    long t0 = initTime();
    SimpleImage res = loadImage();
    showElapsedTime(t0);
    return res;
}
Also used : SimpleImage(org.jwildfire.image.SimpleImage)

Example 33 with SimpleImage

use of org.jwildfire.image.SimpleImage in project JWildfire by thargor6.

the class EnvelopeDialog method getFlamePanel.

private FlamePanel getFlamePanel() {
    if (flamePanel == null) {
        int width = getPreviewRootPanel().getWidth();
        int height = getPreviewRootPanel().getHeight();
        SimpleImage img = new SimpleImage(width, height);
        img.fillBackground(0, 0, 0);
        flamePanel = new FlamePanel(Prefs.getPrefs(), img, 0, 0, getPreviewRootPanel().getWidth(), this, null);
        flamePanel.setRenderWidth(800);
        flamePanel.setRenderHeight(600);
        flamePanel.setFocusable(true);
        getPreviewRootPanel().add(flamePanel, BorderLayout.CENTER);
    // getPreviewRootPanel().getParent().validate();
    // getPreviewRootPanel().repaint();
    // flamePanel.requestFocusInWindow();
    }
    return flamePanel;
}
Also used : SimpleImage(org.jwildfire.image.SimpleImage) FlamePanel(org.jwildfire.create.tina.swing.flamepanel.FlamePanel) Point(java.awt.Point)

Example 34 with SimpleImage

use of org.jwildfire.image.SimpleImage in project JWildfire by thargor6.

the class BufferedInteractiveRendererDisplayUpdater method initImage.

@Override
public void initImage(int pBGRed, int pBGGreen, int pBGBlue, String pBGImagefile) {
    boolean repaint = false;
    if (pBGRed > 0 || pBGGreen > 0 || pBGBlue > 0) {
        SimpleImage img = new SimpleImage(image.getBufferedImg(), imageWidth, imageHeight);
        img.fillBackground(pBGRed, pBGGreen, pBGBlue);
        repaint = true;
    }
    if (pBGImagefile != null && pBGImagefile.length() > 0) {
        try {
            SimpleImage img = new SimpleImage(image.getBufferedImg(), imageWidth, imageHeight);
            SimpleImage bgImg = (SimpleImage) RessourceManager.getImage(pBGImagefile);
            img.fillBackground(bgImg);
            repaint = true;
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
    if (repaint) {
        buffer = getBufferFromImage();
    }
}
Also used : SimpleImage(org.jwildfire.image.SimpleImage)

Example 35 with SimpleImage

use of org.jwildfire.image.SimpleImage in project JWildfire by thargor6.

the class DefaultInteractiveRendererDisplayUpdater method initImage.

@Override
public void initImage(int pBGRed, int pBGGreen, int pBGBlue, String pBGImagefile) {
    if (pBGRed > 0 || pBGGreen > 0 || pBGBlue > 0) {
        SimpleImage img = new SimpleImage(image.getBufferedImg(), imageWidth, imageHeight);
        img.fillBackground(pBGRed, pBGGreen, pBGBlue);
    }
    if (pBGImagefile != null && pBGImagefile.length() > 0) {
        try {
            SimpleImage img = new SimpleImage(image.getBufferedImg(), imageWidth, imageHeight);
            SimpleImage bgImg = (SimpleImage) RessourceManager.getImage(pBGImagefile);
            img.fillBackground(bgImg);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
Also used : SimpleImage(org.jwildfire.image.SimpleImage)

Aggregations

SimpleImage (org.jwildfire.image.SimpleImage)174 Pixel (org.jwildfire.image.Pixel)37 ImagePanel (org.jwildfire.swing.ImagePanel)24 FlamePanel (org.jwildfire.create.tina.swing.flamepanel.FlamePanel)20 Dimension (java.awt.Dimension)18 Flame (org.jwildfire.create.tina.base.Flame)17 File (java.io.File)16 RenderedFlame (org.jwildfire.create.tina.render.RenderedFlame)16 ArrayList (java.util.ArrayList)14 Rectangle (java.awt.Rectangle)12 FlameRenderer (org.jwildfire.create.tina.render.FlameRenderer)12 RenderInfo (org.jwildfire.create.tina.render.RenderInfo)12 Graphics (java.awt.Graphics)10 SimpleHDRImage (org.jwildfire.image.SimpleHDRImage)10 WFImage (org.jwildfire.image.WFImage)9 ImageReader (org.jwildfire.io.ImageReader)9 JPanel (javax.swing.JPanel)8 JScrollPane (javax.swing.JScrollPane)8 ResolutionProfile (org.jwildfire.base.ResolutionProfile)8 Color (java.awt.Color)7