Examples of drawImage()


Examples of org.eclipse.swt.graphics.GC.drawImage()

     
      bufferScale = new Image(drawCanvas.getDisplay(),bounds);
     
      GC gcBuffer = new GC(bufferScale);
      try {
      gcBuffer.drawImage(bufferBackground,0,0);
      gcBuffer.setForeground(Colors.black);
      //gcImage.setBackground(null);
      scale.setNbPixels(bounds.height - 16);
      int[] levels = scale.getScaleValues();
      for(int i = 0 ; i < levels.length ; i++) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawImage()

    if(internalLoop == 0 || sizeChanged) {
      drawChart(sizeChanged);
    }
   
    GC gc = new GC(drawCanvas);
    gc.drawImage(bufferImage,bounds.x,bounds.y);
    gc.dispose();   
  }
 
  protected void drawChart(boolean sizeChanged) {
   try{
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawImage()

     
      bufferImage = new Image(drawCanvas.getDisplay(),bounds);
     
      GC gcImage = new GC(bufferImage);
     
      gcImage.drawImage(bufferScale,0,0);
     
      int oldAverage = 0;  
      int[] oldTargetValues = new int[all_values.length];
      int[] maxs = new int[all_values.length];
      for(int x = 0 ; x < bounds.width - 71 ; x++) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawImage()

      drawPlot();
    }

    GC gc = new GC(canvas);
   
    gc.drawImage(bufferImage,bounds.x,bounds.y);
   
    gc.dispose();  
  }
 
 
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawImage()

      if ( buffer_image != null ){
       
        GC gc = new GC( canvas );
 
        gc.drawImage( buffer_image, bounds.x, bounds.y );
 
        gc.dispose();  
      }
    }
   
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawImage()

        GC gc = arg0.gc;
        gc.setForeground (GRADIENT_COLOR_2);
        gc.setBackground (GRADIENT_COLOR_1);
        gc.fillGradientRectangle (rect.x, rect.y, rect.width, rect.height, false);
        Image image = SWTImageRepository.getImage(logo_image);
        gc.drawImage(image, rect.width - image.getImageData().width - 10, 5);
       
        gc.setForeground(new Color(SWTThread.getDisplay(),0,0,0));
        Font font = new Font(display,"Arial",14,SWT.NONE );
        gc.setFont(font);
        gc.drawText(JMConstants.JMULE_NAME, 20, TOP_GRADIENT_HEIGHT / 2 - 15,true);
View Full Code Here

Examples of org.newdawn.slick.Graphics.drawImage()

        if(h2>h1)h2=h1;
        for (int r = 0; r < 16; r++) {
          for (int c = 0; c < 8; c++) {
            float x = (w1) * (c * 2 + r % 2);
            float y = (h1) * r;
            g.drawImage(img3, x, y, x + w1, y + h2, x, y, x + w1, y
                + h2);
          }
        }
      if (t > 0.5f){
        h2= h1 * (t-0.5f)*2;
 
View Full Code Here

Examples of org.pdfbox.pdmodel.edit.PDPageContentStream.drawImage()

                //ximage = new PDPixelMap(doc, awtImage);
                throw new IOException( "Image type not supported:" + image );
            }
            PDPageContentStream contentStream = new PDPageContentStream(doc, page);
           
            contentStream.drawImage( ximage, 20, 20 );
         
            contentStream.close();
            doc.save( file );
        }
        finally
View Full Code Here

Examples of org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D.drawImage()

    // That's why, we need the scale the graphics to have a 50 PPC eps picture.
    final double scale = 72. / PSTricksConstants.INCH_VAL_CM / IShape.PPC;// 72 DPI / 2.54 / 50 PPC
    try(FileOutputStream finalImage = new FileOutputStream(file)){
      final EpsGraphics2D g = new EpsGraphics2D("LaTeXDrawPicture", finalImage, 0, 0, (int)(getWidth()*scale), (int)(getHeight()*scale));//$NON-NLS-1$
      g.scale(scale, scale);
      g.drawImage(image, 0, 0, null);
      g.flush();
      g.close();
    }
  }

View Full Code Here

Examples of railo.runtime.img.Image.drawImage()

  public static String call(PageContext pc, Object name, Object image,double x, double y) throws PageException {
    if(name instanceof String) name=pc.getVariable(Caster.toString(name));
    Image img = Image.toImage(name);
   
   
    img.drawImage(Image.createImage(pc, image, true, false,true,null), (int)x, (int)y);
    return null;
  }
 
}
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.