Commit f7f0e111 authored by Tim Falken's avatar Tim Falken
Browse files

default zoom reduce

TODO: Make better scaling algorithm, this one is way too slow.
Preferably don't scale the image at all, find a trick to zoom in on the actual picturebox.
parent 24bb57ab
No preview for this file type
Examples/Hello World.bmp

1 KB | W: | H:

Examples/Hello World.bmp

1.09 KB | W: | H:

Examples/Hello World.bmp
Examples/Hello World.bmp
Examples/Hello World.bmp
Examples/Hello World.bmp
  • 2-up
  • Swipe
  • Onion skin
......@@ -17,7 +17,7 @@ namespace PaintLang
public partial class Form1 : Form
{
public Bitmap LogicMap;
private float zoomLevel = 50;
private float zoomLevel = 10;
private ColorPicker colorPicker = new ColorPicker();
private MemoryDisplayer memoryDisplayer = new MemoryDisplayer();
private Directions cursorDirection = Directions.Right;
......@@ -135,7 +135,7 @@ namespace PaintLang
private void OnMouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)
{
zoomLevel += e.Delta * 0.1f;
zoomLevel += e.Delta * 0.01f;
if (zoomLevel < 1)
zoomLevel = 1;
......
......@@ -16,7 +16,7 @@ namespace PaintLang
private Bitmap bmp = new Bitmap(1, 1);
private int brushX, brushY;
private float zoomLevel = 50;
private float zoomLevel = 10;
private bool draw = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment