Sorry for the delay. I hope these do what you need.
Of course you’ll need to add checks to make sure that you’re not dividing by
zero or nil.
// Alex Zavatone 4/2/16.
+ (UIImage *)imageWithImage:(UIImage *)image scaledToHeight:(CGFloat)newHeight
{
CGFloat ratio = newHeight /
I’ve got more if you need to desaturate an image, remove all color, tint a
bitmap, as opposed to using tint, this actually makes a new tinted bitmap, find
imageInbundle, create enabled and disabled images from source images and so on.
Sometimes we want to use the actual tint, and other times,
Thanks for the UIImage category resizing methods! They are quite useful.
-Carl
> On Nov 4, 2020, at 2:17 PM, Alex Zavatone wrote:
>
> Sorry for the delay. I hope these do what you need.
> Of course you’ll need to add checks to make sure that you’re not dividing by
> zero or nil.
>
>
>
>