/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seniorproject.augmentedreality.utils;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;

/**
 *
 * @author RainWhileLoop
 */
public class MyCanvas extends Canvas {

    private Image image;
    
    @Override
    public void paint(Graphics g) {
        g.drawImage(image, 0, 0, null);
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }
    
    
}

@@ -422,26 +422,77 @@
 image;%0D%0A    
+private int width = 0;%0D%0A    private int height = 0;
 %0D%0A
-
     @Overrid
@@ -562,12 +562,21 @@
 ge, 
-0, 0
+width, height
 , nu
@@ -690,24 +690,24 @@
 e image) %7B%0D%0A
-
         this
@@ -729,16 +729,174 @@
 %0D%0A    %7D%0D
+%0A%0D%0A    public void setWidth(int width) %7B%0D%0A        this.width = width;%0D%0A    %7D%0D%0A%0D%0A    public void setHeight(int height) %7B%0D%0A        this.height = height;%0D%0A    %7D%0D
 %0A    %0D%0A 

Update MyCanvas