I want to create a rotating wheel in c# form and some pictures get stretched for no apparent reason.
I tried looking into file properties as some images get stretched and some are just fine but i failed to find anything.
private void Form1_Paint(object sender, PaintEventArgs e)
{
angle = (int)(angle * szybkosc);
//
//kolo1
Bitmap bit_kolo1 = new Bitmap(kolo1.Width, kolo1.Height);
Graphics gkolo1 = Graphics.FromImage(bit_kolo1);
gkolo1.TranslateTransform(bit_kolo1.Width / 2, bit_kolo1.Height / 2);
gkolo1.RotateTransform(angle);
gkolo1.TranslateTransform(-bit_kolo1.Width / 2, -bit_kolo1.Height / 2);
gkolo1.InterpolationMode = InterpolationMode.HighQualityBicubic;
gkolo1.DrawImage(kolo1, 0,0);
EDIT 1: I noticed that is only happenes with pictures that i previously cropped using gimp. Still dont know how to fix it tho