SDLImageResolution Class Reference

Section Contents

Overview

The resolution of an image

resolutionWidth

Resolution width

Required

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull resolutionWidth;

Swift

var resolutionWidth: NSNumber & SDLInt { get set }

resolutionHeight

Resolution height

Required

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull resolutionHeight;

Swift

var resolutionHeight: NSNumber & SDLInt { get set }

-initWithWidth:height:

Convenience init with all parameters

Objective-C

- (nonnull instancetype)initWithWidth:(uint16_t)width height:(uint16_t)height;

Swift

init(width: UInt16, height: UInt16)

Parameters

width

Resolution width

height

Resolution height

Return Value

An SDLImageResolution object