Enlarging an image without blurring by taking one pixel and turning it into four on a new image with different dimensions
问题 I have previously written an image enlarger algorithm that enlarges images without blurring by doubling the image size and making a single pixel into four pixels on the new image. This was originally built for 500x500 pixel images and it worked absolutely fine but now I need to use it for an image that has a different width and height. I have tried changing the values but I cannot get it to work and there maybe something missing but I don't know. Can someone help fix this so it works with