I'm loading this image from Properties.Resources and then clone some part of it to another image and then I draw it on the form in the Paint method. I want this image to stretched vertically but for some reason it's not being stretched like it was repeating itself (which I want), it looks "stretched".
This is my code:
Bitmap SKIN = new Bitmap(Properties.Resources.Skin);
System.Drawing.Imaging.PixelFormat format = SKIN.PixelFormat;
Bitmap iLeft = SKIN.Clone(new Rectangle(0, 10, 5, 15), format);
Question
ProclaimDragon
I'm loading this image from Properties.Resources and then clone some part of it to another image and then I draw it on the form in the Paint method. I want this image to stretched vertically but for some reason it's not being stretched like it was repeating itself (which I want), it looks "stretched".
This is my code:
And on the Paint method:
And this is how it looks:
Basically, the cloned image is 5 pixels wide and 1 pixel high and I just want it to repeat it self without that "softness" you see on the image.
P.S: Sorry for my bad English on this post, I'm just very tired and sleepy :p
Link to comment
Share on other sites
4 answers to this question
Recommended Posts