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());
}
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;
}
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;
}
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();
}
}
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();
}
}
}
Aggregations