let heightInPoints = image.size.height
let heightInPixels = heightInPoints * image.scale
let widthInPoints = image.size.width
let widthInPixels = widthInPoints * image.scale
More Related Contents:
- Loading/Downloading image from URL on Swift
- iOS UIImagePickerController result image orientation after upload
- How can I mask a UIImageView?
- How to Convert UIView to PDF within iOS?
- Create UIImage with solid color in Swift
- UIImageView – How to get the file name of the image assigned?
- How do I take a full screen Screenshot in Swift?
- How to compress/resize image on iOS before uploading to a server?
- How to flip UIImage horizontally?
- Change color of certain pixels in a UIImage
- Cut a UIImage into a circle
- UIImage from CALayer in iOS
- Extract UIImage from NSAttributed String
- Rotating UIImage in Swift
- Resize UIImage to 200x200pt/px
- Comparing UIImage
- Creating a UIImage from a UIColor to use as a background image for UIButton [duplicate]
- How to turn a CVPixelBuffer into a UIImage?
- UICollectionView adding image to a cell
- iOS UIImage clip to paths
- What should image sizes be at @1x, @2x and @3x in Xcode?
- Pixel Array to UIImage in Swift
- Convert UIImage to NSData and convert back to UIImage in Swift?
- Set custom images to the UIBarButtonItem but it doesn’t show any image
- How do you create a UIImage View Programmatically – Swift
- How can I change the color of a UIImage? [duplicate]
- How to create a UIImage from the current graphics context?
- How can I convert FBProfilePictureView to an UIImage?
- Replace a particular color inside an image with another color
- How to merge two UIImages?