Examples of Canvas


Examples of android.graphics.Canvas

      boolean handled = false;
     
      if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
        this.mPreviewThread.interrupt();
        Bitmap bmp = Bitmap.createBitmap(1280, 1024, false);
        Canvas c = new Canvas(bmp);
        this.mCamera.capture(c);
        this.mDhp.setImage(bmp);
        this.mDhp.Push();
      }
      return handled;
View Full Code Here

Examples of android.graphics.Canvas

            // asked to quit.
            SurfaceHolder holder = mHolder;
            while (!mDone) {
                // Lock the surface, this returns a Canvas that can
                // be used to render into.
                Canvas canvas = holder.lockCanvas();

                // Capture directly into the Surface
                if (mCamera != null) {
                    mCamera.capture(canvas);
                }
View Full Code Here

Examples of android.graphics.Canvas

      boolean handled = false;
     
      if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
        this.mPreviewThread.interrupt();
        Bitmap bmp = Bitmap.createBitmap(1280, 1024, false);
        Canvas c = new Canvas(bmp);
        this.mCamera.capture(c);
        RgbImage inimg = RgbImageAndroid.toRgbImage(bmp);
        DetectBarcode db = new DetectBarcode(20000);
        if (!db.Push(inimg)) {
          /**
 
View Full Code Here

Examples of android.graphics.Canvas

            // asked to quit.
            SurfaceHolder holder = mHolder;
            while (!mDone) {
                // Lock the surface, this returns a Canvas that can
                // be used to render into.
                Canvas canvas = holder.lockCanvas();

                // Capture directly into the Surface
                if (mCamera != null) {
                    //mCamera.capture(canvas);
                }
View Full Code Here

Examples of aspect.render.Canvas

        camera = new Transform(new Vector3(-10, 10, 10), new Vector3(1, -1, -1), Vector3.yAxis(), Vector3.one());

        gravity = new UniformGravity();
        World.main.addForce(gravity);
       
        counter = new Canvas(128, 32);
        updateCounter();

        spawner = new Entity();
        spawner.transform.position.y = 15.0f;
View Full Code Here

Examples of com.cburch.draw.canvas.Canvas

 
  private static void showFrame(Drawing model, String title) {
    JFrame frame = new JFrame(title);
    DrawingAttributeSet attrs = new DrawingAttributeSet();

    Canvas canvas = new Canvas();
    Toolbar toolbar = new Toolbar(canvas, attrs);
    canvas.setModel(model, new UndoLogDispatcher(new UndoLog()));
    canvas.setTool(toolbar.getDefaultTool());
   
    AttrTable table = new AttrTable(frame);
    AttrTableDrawManager manager = new AttrTableDrawManager(canvas, table, attrs);
    manager.attributesSelected();
    HorizontalSplitPane west = new HorizontalSplitPane(toolbar, table, 0.5);
View Full Code Here

Examples of com.cburch.logisim.gui.main.Canvas

    return tool;
  }

  public Selection getSelection() {
    if (frame == null) return null;
    Canvas canvas = frame.getCanvas();
    if (canvas == null) return null;
    return canvas.getSelection();
  }
View Full Code Here

Examples of com.gloopics.g3viewer.client.canvas.Canvas

  }

  @Override
  public void onSuccess() {
    // resize file
    Canvas upThumb = com.gloopics.g3viewer.client.canvas.Factory.getInstance().createCanvas();
    upThumb.decode(m_Blob);
   
    float imageWidth = (float)upThumb.getWidth();
    float imageHeight = (float)upThumb.getHeight();
   
    float widthRatio = imageWidth/((float)m_ResizeOptions.getMaxWidth());
    float heightRatio = imageHeight/((float)m_ResizeOptions.getMaxHeight());
   
    if (widthRatio > heightRatio){
      if (widthRatio > 1) {
        upThumb.resize(m_ResizeOptions.getMaxWidth(), (int)(imageHeight / widthRatio) );
        m_UploadFile.uploadBlob(upThumb.encode());
        return;
      }
      m_UploadFile.uploadBlob(m_Blob);
    }
    else
    {
      if (heightRatio > 1){
        upThumb.resize((int)(imageWidth / heightRatio), m_ResizeOptions.getMaxHeight());
        m_UploadFile.uploadBlob(upThumb.encode());
        return;
      }
      m_UploadFile.uploadBlob(m_Blob);
    }
  }
View Full Code Here

Examples of com.google.gwt.canvas.client.Canvas

    }
    if(redMushroom!=null)
      return redMushroom;
   
   
    Canvas canvas = Canvas.createIfSupported();
      canvas.setCoordinateSpaceWidth(width);
      canvas.setCoordinateSpaceHeight(height);
      Context2d context = canvas.getContext2d();
     
        // Draw Mushroom stem
    drawStem(context);
     
    //Now draw Muhsroom Head
View Full Code Here

Examples of com.google.gwt.gears.client.canvas.Canvas

   * Test method for
   * {@link com.google.gwt.gears.client.Factory#createCanvas()}.
   */
  public void testCreateCanvas() {
    Factory factory = Factory.getInstance();
    Canvas canvas = factory.createCanvas();
    assertNotNull("Factory.createCanvas() returned null", canvas);
  }
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.