Package org.jwildfire.transform

Examples of org.jwildfire.transform.ComposeTransformer.transformImage()


        composeT.setHAlign(ComposeTransformer.HAlignment.OFF);
        composeT.setVAlign(ComposeTransformer.VAlignment.OFF);
        composeT.setTop(0);
        composeT.setLeft(i * IMG_WIDTH);
        composeT.setForegroundImage(foreground);
        composeT.transformImage(preview);
      }
    }

    public SimpleImage getPreview(int pQuality) {
      if (preview == null) {
View Full Code Here


        cT.setVAlign(ComposeTransformer.VAlignment.OFF);
        cT.setTop(i * brickHeight);
        int left = j * brickWidth + off;
        cT.setLeft(left);
        cT.setForegroundImage(compImg);
        cT.transformImage(res);
      }
    }
  }

  public int getBrickSize() {
View Full Code Here

                cT.setHAlign(ComposeTransformer.HAlignment.LEFT);
                cT.setVAlign(ComposeTransformer.VAlignment.BOTTOM);
                cT.setTop(10);
                cT.setLeft(10);
                cT.setForegroundImage(layerImg);
                cT.transformImage(img);
              }
            }

            if (pDownScale != 1) {
              SimpleImage background = new SimpleImage(panelBounds.width, panelBounds.height);
View Full Code Here

              SimpleImage background = new SimpleImage(panelBounds.width, panelBounds.height);
              ComposeTransformer cT = new ComposeTransformer();
              cT.setHAlign(ComposeTransformer.HAlignment.CENTRE);
              cT.setVAlign(ComposeTransformer.VAlignment.CENTRE);
              cT.setForegroundImage(img);
              cT.transformImage(background);
              img = background;
            }

            imgPanel.setImage(img);
            if (!cfg.isNoControls()) {
View Full Code Here

              int yOff = 0;
              for (int i = 0; i < leftRenders.length; i++) {
                composeTransformer.setLeft(0);
                composeTransformer.setTop(yOff);
                composeTransformer.setForegroundImage(leftRenders[i].getImage());
                composeTransformer.transformImage(mergedImg);
                yOff += pRenderInfo.getImageHeight();
              }

              yOff = 0;
              for (int i = 0; i < rightRenders.length; i++) {
View Full Code Here

              yOff = 0;
              for (int i = 0; i < rightRenders.length; i++) {
                composeTransformer.setLeft(pRenderInfo.getImageWidth());
                composeTransformer.setTop(yOff);
                composeTransformer.setForegroundImage(rightRenders[i].getImage());
                composeTransformer.transformImage(mergedImg);
                yOff += pRenderInfo.getImageHeight();
              }

              return mergedRender;
            }
View Full Code Here

    ComposeTransformer composeTransformer = new ComposeTransformer();
    composeTransformer.setHAlign(HAlignment.OFF);
    composeTransformer.setVAlign(VAlignment.OFF);
    composeTransformer.setForegroundImage(leftRender.getImage());
    composeTransformer.transformImage(mergedImg);

    composeTransformer.setForegroundImage(rightRender.getImage());
    composeTransformer.setLeft(leftRender.getImage().getImageWidth());
    composeTransformer.transformImage(mergedImg);
View Full Code Here

    composeTransformer.setForegroundImage(leftRender.getImage());
    composeTransformer.transformImage(mergedImg);

    composeTransformer.setForegroundImage(rightRender.getImage());
    composeTransformer.setLeft(leftRender.getImage().getImageWidth());
    composeTransformer.transformImage(mergedImg);

    return mergedRender;
  }

  private RenderedFlame renderStereo3dAnaglyph(RenderInfo pRenderInfo) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.