When i draw a large image (say 1000×1000 pixel) using drawInRect method with size say 200×200 pixel and again i use drawInRect method to draw the image to its original size (1000×1000 pixel) does the resolution affect by using this ? Does the resolution decreases by drawing large image into small and again that same image to large image ?
When i draw a large image (say 1000×1000 pixel) using drawInRect method with size
Share
Hopefully I’ve gotten your question correct in my head.
If you take an image bigger than 200×200 pixels and draw it into a 200×200 pixel rectangle, it’ll get scaled down and lose most of its detail. If you then take the resultant image and try to draw it in a bigger rectangle it’ll just get scaled up. So, to answer you’re question, yes. It’ll look blurry as hell. It’s no different than resizing an image down in a graphics editor then blowing it back up to its original size. The loss of detail is permanent; there’s no way to know what was lost in the transition down.