Skip to content
Snippets Groups Projects

Resolve "Create Image From Canvas"

Merged Nicklas Persia Tufteland requested to merge 16-create-image-from-canvas into dev
2 files
+ 75
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -83,6 +83,14 @@ public class ChaosCanvas {
@@ -83,6 +83,14 @@ public class ChaosCanvas {
}
}
}
}
 
public int getHeight() {
 
return height;
 
}
 
 
public int getWidth() {
 
return width;
 
}
 
/**
/**
* Sets the transformation matrix and vector to convert coordinates to indices on the canvas.
* Sets the transformation matrix and vector to convert coordinates to indices on the canvas.
* Calculates the scaling factors and translation values based on canvas dimensions and coordinate bounds.
* Calculates the scaling factors and translation values based on canvas dimensions and coordinate bounds.
Loading