1
Graphics / Re: Scale an image, what's wrong in this code?
« on: May 11, 2015, 06:59:50 pm »
I'll explain my situation. I've set a view(28x28) on a window(200x200).
In an image(28x28) I draw with the mouse.
Then I convert the image into a matrix of int, with 1 and 0(black and white).
What I fear is that by converting coordinates like this:
In an image(28x28) I draw with the mouse.
Then I convert the image into a matrix of int, with 1 and 0(black and white).
What I fear is that by converting coordinates like this:
Code: [Select]
matrix[(int)posX*0.8][(int)posY*0.8]
I might lose too much quality