Examples of DrawImage()


Examples of com.mojang.minecraft.gui.Button.drawImage()

               var9 = 0;
            } else if(var6) {
               var9 = 2;
            }

            var4.drawImage(var4.x, var4.y, 0, 46 + var9 * 20, var4.width / 2, var4.height);
            var4.drawImage(var4.x + var4.width / 2, var4.y, 200 - var4.width / 2, 46 + var9 * 20, var4.width / 2, var4.height);
            if(!var4.active) {
               Button.drawCenteredString(var8, var4.text, var4.x + var4.width / 2, var4.y + (var4.height - 8) / 2, -6250336);
            } else if(var6) {
               Button.drawCenteredString(var8, var4.text, var4.x + var4.width / 2, var4.y + (var4.height - 8) / 2, 16777120);
View Full Code Here

Examples of com.trolltech.qt.gui.QPainter.drawImage()

    QRect availGeo = desktop.availableGeometry(screen);
   
    int x1 = (availGeo.width()/2)-(image.size().width()/2);
    int y1 = (availGeo.height()/2)-(image.size().height()/2);
   
    painter.drawImage(new QPoint(x1,y1), image);
  }


  public List<String> getGuids() {
    return guids;
View Full Code Here

Examples of edu.uci.ics.jung.visualization.transform.shape.TransformingGraphics.drawImage()

                            g2d.drawRenderedImage(ri, AffineTransform
                                    .getTranslateInstance(xLoc, yLoc));
                            g2d.setClip(clip);
                        }
                    } else {
                        g2d.drawImage(image, AffineTransform.getTranslateInstance(xLoc,
                                yLoc), null);
                    }

            } else {
              paintShapeForVertex(rc, v, shape);
View Full Code Here

Examples of gwt.g2d.client.graphics.Surface.drawImage()

      return;
    }
    int width = video.getVideoWidth();
    int height = video.getVideoHeight();
    Surface surface = getPrimarySurface();
    surface.drawImage(video.getVideoElement(), 0, 0, width, height,
        0, 0, width, height)
    ImageDataAdapter frame = surface.getImageData(0, 0, width, height);
    CanvasPixelArray pixelData = frame.getPixelData();
    int l = pixelData.getLength()
 
View Full Code Here

Examples of java.awt.Graphics.drawImage()

        int height = image.getHeight();

        if (width > height) {
          Image newImage =
            image.getScaledInstance(w, -1, Image.SCALE_SMOOTH);
          g.drawImage(
            newImage,
            0,
            (h - newImage.getHeight(null)) / 2,
            null);
        } else {
View Full Code Here

Examples of java.awt.Graphics.drawImage()

            (h - newImage.getHeight(null)) / 2,
            null);
        } else {
          Image newImage =
            image.getScaledInstance(-1, h, Image.SCALE_SMOOTH);
          g.drawImage(
            newImage,
            (w - newImage.getWidth(null)) / 2,
            0,
            null);
        }
View Full Code Here

Examples of java.awt.Graphics.drawImage()

        int height = image.getHeight();

        if (width > height) {
          Image newImage =
            image.getScaledInstance(w, -1, Image.SCALE_SMOOTH);
          g.drawImage(
            newImage,
            0,
            (h - newImage.getHeight(null)) / 2,
            null);
        } else {
View Full Code Here

Examples of java.awt.Graphics.drawImage()

            (h - newImage.getHeight(null)) / 2,
            null);
        } else {
          Image newImage =
            image.getScaledInstance(-1, h, Image.SCALE_SMOOTH);
          g.drawImage(
            newImage,
            (w - newImage.getWidth(null)) / 2,
            0,
            null);
        }
View Full Code Here

Examples of java.awt.Graphics.drawImage()

                    image.getWidth(null),
                    image.getHeight(null),
                    BufferedImage.TYPE_INT_ARGB);

            Graphics g = bufImage.createGraphics();
            g.drawImage(image, 0, 0, null);
            return bufImage;
        }
    }
}
View Full Code Here

Examples of java.awt.Graphics.drawImage()

      int x = offscreen.getWidth(null)/2;
      int y = offscreen.getHeight(null)/2;

      // draw logo
      if (logo != null) {
        og.drawImage(logoBuffer, x-logo.getWidth(null)/2, y-logo.getHeight(null)/2, this);
      }

      // draw message
      int messageX = (offscreen.getWidth(null) - fm.stringWidth(message)) / 2;
      int messageY = y + 20;
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.