MBMImage


@interface MBMImage : NSObject

Image type.

  • 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 MBXDataRef *)data;

    Swift

    init(width: UInt32, height: UInt32, data: MBXDataRef)
  • 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) MBXDataRef *data;

    Swift

    var data: MBXDataRef { get }