MBMImage.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Image type. */
  4. NS_SWIFT_NAME(Image)
  5. __attribute__((visibility ("default")))
  6. @interface MBMImage : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithWidth:(uint32_t)width
  12. height:(uint32_t)height
  13. data:(nonnull NSData *)data;
  14. /** The width of the image, in screen pixels. */
  15. @property (nonatomic, readonly) uint32_t width;
  16. /** The height of the image, in screen pixels. */
  17. @property (nonatomic, readonly) uint32_t height;
  18. /**
  19. * 32-bit premultiplied RGBA image data.
  20. *
  21. * An uncompressed image data encoded in 32-bit RGBA format with premultiplied
  22. * alpha channel. This field should contain exactly `4 * width * height` bytes. It
  23. * should consist of a sequence of scanlines.
  24. */
  25. @property (nonatomic, readonly, nonnull) NSData *data;
  26. @end