C
C#2y ago
PepeGak

Graphics.DrawLine and .DrawPolygon doesn't work properly

I need to draw a cat shape. If I set "zoom" (k) to 2, cat is drawn properly (img. 1) but when I set the k to 4, the cat is not fully shown (img.2)
7 Replies
PepeGak
PepeGak2y ago
1 sec, I'll send a pastebin link
PepeGak
PepeGak2y ago
Pastebin
using System;using System.Collections.Generic;using System.Componen...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Jester
Jester2y ago
isnt the canvas / image youre drawing on too small?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jester
Jester2y ago
you zoom in the square, not the square itself
PepeGak
PepeGak2y ago
it seems that the problem is in the Form1 ctor because if I add g = CreateGraphics() in Form1_KeyDown, all works fine
Jester
Jester2y ago
yeah idk what that method does