Examples of DrawImage()


Examples of net.rim.device.api.ui.Graphics.drawImage()

                  g.setColor( bgColor );
                } else {
                  g.setColor( Color.WHITE );
                }
                g.fillRect( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight() );
                g.drawImage( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight(),
                    scaledBgImage, 0, 0, 0 );

                Background bg = BackgroundFactory.createBitmapBackground( bgImg,
                        Background.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_SCALE_TO_FIT );
                this.setBackground( bg );
View Full Code Here

Examples of org.apache.batik.svggen.SVGGraphics2D.drawImage()

              int y = (int) Math.round(Double.valueOf(graphObject.get(graphObject.size()-4).toString()).doubleValue());
              int width = (int) Math.round(Double.valueOf(graphObject.get(graphObject.size()-3).toString()).doubleValue());
              int height = (int) Math.round(Double.valueOf(graphObject.get(graphObject.size()-2).toString()).doubleValue());
             
              SVGGraphics2D svgGenerator_temp = new SVGGraphics2D(svgGenerator);
              svgGenerator_temp.drawImage(myImage, x, y, width, height, null);
             
            } else {
              log.error("tried to inculde a non existing File into SVG/Image Export Path: "+full_path);
            }
           
View Full Code Here

Examples of org.apache.fop.afp.AFPGraphics2D.drawImage()

                    painter, rendererContextWrapper, resolution, !colorImages, false);

            // draw image
            AffineTransform at = paintingState.getData().getTransform();
            at.translate(x, y);
            g2d.drawImage(bufferedImage, at, null);
        } else {
            AFPGraphicsObjectInfo graphicsObjectInfo = new AFPGraphicsObjectInfo();
            graphicsObjectInfo.setPainter(painter);
            graphicsObjectInfo.setGraphics2D(g2d);
View Full Code Here

Examples of org.apache.fop.svg.PDFGraphics2D.drawImage()

            RendererContextWrapper ctx = RendererContext.wrapRendererContext(context);
            BufferedImage bi = paintToBufferedImage(painter, ctx, resolution, false, false);

            float scale = PDFRenderer.NORMAL_PDF_RESOLUTION
                            / context.getUserAgent().getTargetResolution();
            graphics.drawImage(bi, new AffineTransform(scale, 0, 0, scale, 0, 0), null);
        } else {
            Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, imw, imh);
            painter.paint(graphics, area);
        }
View Full Code Here

Examples of org.apache.harmony.awt.gl.windows.WinGDIPGraphics2D.drawImage()

            try {
                startJob(pdc, getDocName(img, attributes),
                                getDestinationPath(attributes));
                WinPrinterFactory.startPage(pdc);
                g2d.drawImage(img, (int) (format.getImageableX() * xRes),
                                (int) (format.getImageableY() * yRes),
                                (int) (format.getImageableWidth() * xRes),
                                (int) (format.getImageableHeight() * yRes),
                                Color.WHITE, null);
                WinPrinterFactory.endPage(pdc);
View Full Code Here

Examples of org.apache.pdfbox.pdfviewer.PageDrawer.drawImage()

                // because of the moved 0,0-reference, we have to shear in the opposite direction
                ctm.setValue(0, 1, (-1)*ctm.getValue(0, 1));
                ctm.setValue(1, 0, (-1)*ctm.getValue(1, 0));
                AffineTransform ctmAT = ctm.createAffineTransform();
                ctmAT.scale(1f/imageWidth, 1f/imageHeight);
                drawer.drawImage( awtImage, ctmAT );
            }
            catch( Exception e )
            {
                e.printStackTrace();
                LOG.error(e, e);
View Full Code Here

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

        doc.addPage( page );

        PDJpeg xImage = new PDJpeg( doc, img );

        PDPageContentStream contentStream = new PDPageContentStream( doc, page );
        contentStream.drawImage( xImage, ( pdRect.getWidth() - w ) / 2, ( pdRect.getHeight() - h ) / 2 );
        contentStream.close();
    }

    private void writePage( ApplicationDetailDescriptor descriptor )
    {
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.PSGraphics2D.drawImage()

            RendererContextWrapper ctx = RendererContext.wrapRendererContext(context);
            BufferedImage bi = paintToBufferedImage(painter, ctx, resolution, false, false);

            float scale = PDFRenderer.NORMAL_PDF_RESOLUTION
                            / context.getUserAgent().getTargetResolution();
            graphics.drawImage(bi, new AffineTransform(scale, 0, 0, scale, 0, 0), null);
        } else {
            Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, imw, imh);
            painter.paint(graphics, area);
        }
View Full Code Here

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

    gcBuffer.setBackground(Colors.blues[Colors.BLUES_MIDDARK]);
    PieUtils.drawPie(gcBuffer,x0 - OWN_SIZE / 2 ,y0 - OWN_SIZE / 2,OWN_SIZE,OWN_SIZE,manager.getStats().getCompleted() / 10);
   
    gcBuffer.dispose();
    GC gcPanel = new GC(panel);
    gcPanel.drawImage(buffer,0,0);
    gcPanel.dispose();
    buffer.dispose();  
  }
 
  public void peerManagerWillBeAdded( PEPeerManager  peer_manager ){}
View Full Code Here

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

     
      int wInside = bounds.width - (marginWidth * 2);
      int hInside = bounds.height - (marginHeight * 2);
      Image imageCellBG = new Image(Display.getDefault(), wInside, hInside);
      GC gc = new GC(imageCellBG);
      gc.drawImage(imageRowBG, bounds.x + marginWidth, 0 + marginHeight,
          wInside, hInside, 0, 0, wInside, hInside);
      gc.dispose();
     
      return imageCellBG;
    }
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.