Package gwt.g2d.client.graphics.canvas

Examples of gwt.g2d.client.graphics.canvas.ImageDataAdapter


   * @param width
   * @param height
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(int width, int height) {
    return new ImageDataAdapter(context.createImageData(width, height)
        .<ImageData>cast());
  }
View Full Code Here


   *
   * @param imageData
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(ImageDataAdapter imageData) {
    return new ImageDataAdapter(context.createImageData(imageData.getImageData()));
  }
View Full Code Here

   * @param width
   * @param height
   */
  public ImageDataAdapter getImageData(double x, double y, double width,
      double height) {
    return new ImageDataAdapter(context.getImageData(x, y, width, height));
  }
View Full Code Here

    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()
 
    for (int i = 0; i < l; i += 4) { 
      int r = pixelData.getData(i + 0)
      int g = pixelData.getData(i + 1)
View Full Code Here

   * @param width
   * @param height
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(int width, int height) {
    return new ImageDataAdapter(context.createImageData(width, height)
        .<ImageData>cast());
  }
View Full Code Here

   *
   * @param imageData
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(ImageDataAdapter imageData) {
    return new ImageDataAdapter(context.createImageData(imageData.getImageData()));
  }
View Full Code Here

   * @param width
   * @param height
   */
  public ImageDataAdapter getImageData(double x, double y, double width,
      double height) {
    return new ImageDataAdapter(context.getImageData(x, y, width, height));
  }
View Full Code Here

   * @param width
   * @param height
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(int width, int height) {
    return new ImageDataAdapter(context.createImageData(width, height)
        .<ImageData>cast());
  }
View Full Code Here

   *
   * @param imageData
   * @return a new ImageData object.
   */
  public ImageDataAdapter createImageData(ImageDataAdapter imageData) {
    return new ImageDataAdapter(context.createImageData(imageData.getImageData()));
  }
View Full Code Here

   * @param width
   * @param height
   */
  public ImageDataAdapter getImageData(double x, double y, double width,
      double height) {
    return new ImageDataAdapter(context.getImageData(x, y, width, height));
  }
View Full Code Here

TOP

Related Classes of gwt.g2d.client.graphics.canvas.ImageDataAdapter

Copyright © 2018 www.massapicom. 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.