Files
MapLibreParticleLab/platform/ios/src/UIImage+MLNAdditions.h
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

28 lines
712 B
Objective-C

#import <UIKit/UIKit.h>
#import "MLNTypes.h"
#include <mbgl/style/image.hpp>
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXTERN MLN_EXPORT MLNExceptionName const MLNResourceNotFoundException;
@interface UIImage (MLNAdditions)
- (nullable instancetype)initWithMLNStyleImage:(const mbgl::style::Image &)styleImage;
- (nullable instancetype)initWithMLNPremultipliedImage:(const mbgl::PremultipliedImage&&)mbglImage scale:(CGFloat)scale;
- (std::unique_ptr<mbgl::style::Image>)mgl_styleImageWithIdentifier:(NSString *)identifier;
- (mbgl::PremultipliedImage)mgl_premultipliedImage;
+ (UIImage *)mgl_resourceImageNamed:(NSString *)imageName;
- (BOOL)isDataEqualTo:(UIImage*)otherImage;
@end
NS_ASSUME_NONNULL_END