Use 0.0 instead of self.size as the scale, defaulting to device scale.#13
Use 0.0 instead of self.size as the scale, defaulting to device scale.#13faceleg wants to merge 1 commit intoAliSoftware:masterfrom
Conversation
|
That's actually probably what we want. For example imagine an screenshot taken from a retina iPhone (Power+Home), saved in the Camera Roll, then transferred via email or whatnot to a non-retina iPhone. The That's the reason why I used the image's scale instead of the device scale, because we manipulate the image itself, independently of the device the code is executing on. |
|
I understand what you mean, but in my case - downscaling album art images to display in "bottom" mode inside a UIImageView, I do want it to use the device's scaling... Could we add another method with "useDeviceScaling:YES/NO"? |
|
That would be a better option, yes. 👍 What I would recommend for the new API:
|
See https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIGraphicsBeginImageContextWithOptions for details