Category "uiimage"

Flip image vertically (Swift)

How to flip an UIImage vertically (up/down)? This is a question that is asked before... Flip UIImage Along Either Axis How to flip UIImage horizontally? How to

SwiftUI - Add Border to One Edge of an Image

It's a pretty straight-forward question - How does one apply a border effect to only the wanted edges of an Image with SwiftUI? For example, I only want to appl

How to compress of reduce the size of an image before uploading to Parse as PFFile? (Swift)

I was trying to upload an image file to Parse after taking photo directly on phone. But it throws an exception: Terminating app due to uncaught exception '

Is it possible to display segment of the UIImage?

I have UIImage with some rounded shape. Is it possible to display somehow some sector of this UIImage. For example only the region from 0 degrees to 45 degrees?

I can't make extension convenience init for UIImage

I want to create UIImage(urlString: String?). There is no error when I run this code but it is not working. extension UIImage { convenience init?(urlString:

Getting a Black and White UIImage (Not Grayscale)

I need to get a pure black and white UIImage from another UIImage (not grayscale). Anyone can help me? Thanks for reading. EDITED: Here is the proposed solut