-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithWidth:(uint32_t)width height:(uint32_t)height data:(nonnull NSData *)data;
Swift
init(width: UInt32, height: UInt32, data: Data)
-
The width of the image, in screen pixels.
Declaration
Objective-C
@property (nonatomic, readonly) uint32_t width;
Swift
var width: UInt32 { get }
-
The height of the image, in screen pixels.
Declaration
Objective-C
@property (nonatomic, readonly) uint32_t height;
Swift
var height: UInt32 { get }
-
32-bit premultiplied RGBA image data.
An uncompressed image data encoded in 32-bit RGBA format with premultiplied alpha channel. This field should contain exactly
4 * width * height
bytes. It should consist of a sequence of scanlines.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSData *data;
Swift
var data: Data { get }
-
Initializes and returns an image.
Declaration
Objective-C
- (nullable instancetype)initWithUIImage:(nonnull UIImage *)uiImage;
Swift
init?(uiImage: UIImage)
Parameters
uiImage
The UIImage used to construct image.
Return Value
an image initialized with UIImage or nil if conversion fails.
-
Allocates, initializes and returns an image.
Declaration
Objective-C
+ (nullable instancetype)imageWithUIImage:(nonnull UIImage *)uiImage;
Parameters
uiImage
The UIImage used to construct image.
Return Value
an image initialized with UIImage or nil if conversion fails.
-
Converts an
MBMImage
to aCGImage
.Declaration
Objective-C
- (nonnull CGImageRef)cgImage;
Swift
func cgImage() -> Unmanaged<CGImage>