* [ios, macos] Improve snap shotter documentation. * [macos] Save snapshots in correct format * [macos] Renamed snapshot item to Export Image * [ios, macos] Clarify Snapshotter documentation. * [ios] Fix snapshot scale * [macOS] Fix snapshotter 4x scaling. * [ios] Fix snapshotter final image scale. * [ios, macos] Update snapshotter size documentation. * [ios, macos] Throw an exception when the snapshotter has already started. * [ios, macos] Add snapshotter header example. * [ios, macos] Use one of the predefined Foundation's exception names.
20 lines
502 B
Objective-C
20 lines
502 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#include <mbgl/style/image.hpp>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface UIImage (MGLAdditions)
|
|
|
|
- (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)styleImage;
|
|
|
|
- (nullable instancetype)initWithMGLPremultipliedImage:(const mbgl::PremultipliedImage&&)mbglImage scale:(CGFloat)scale;
|
|
|
|
- (std::unique_ptr<mbgl::style::Image>)mgl_styleImageWithIdentifier:(NSString *)identifier;
|
|
|
|
- (mbgl::PremultipliedImage)mgl_premultipliedImage;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|