BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKDrawableResource.h
浏览该文件的文档.
1 //
2 // BMKDrawableResource.h
3 // MapComponent
4 //
5 // Created by zhaoxiangru on 2024/12/27.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12 @interface BMKDrawableResource : NSObject
13
14 @end
15
16 @interface BMKBitmapResource : BMKDrawableResource
17
20 - (instancetype)initWithImage:(UIImage *)image dpiScale:(BOOL)scale;
21
26 - (instancetype)initWithPixelData:(Byte *)rgbaPixels imgWidth:(int)width imgHeight:(int)height dpiScale:(BOOL)scale;
27
30 - (instancetype)initWithImageData:(NSData *)data dpiScale:(BOOL)scale;
31
34 - (instancetype)initWith9PatchData:(NSData *)data dpiScale:(BOOL)scale;
35
39 - (instancetype)initWithImage:(UIImage *)image capInsets:(UIEdgeInsets)capInsets dpiScale:(BOOL)scale;
40
46 - (instancetype)initWithImage:(UIImage *)image scaleX:(NSArray *)scalex
47 scaleY:(NSArray *)scaley fillArea:(UIEdgeInsets)area dpiScale:(BOOL)scale;
48
55 - (instancetype)initWithData:(NSData *)data scaleX:(NSArray *)scalex
56 scaleY:(NSArray *)scaley fillArea:(NSArray *)area dpiScale:(BOOL)scale;
57
58 @end
59
61 @interface BMKFrameResource : BMKDrawableResource
62
66 - (instancetype)initWithBitmapResources:(NSArray<BMKBitmapResource *> *)bitmapResources interval:(int)interval;
67
72 - (instancetype)initWithBitmapResources:(NSArray<BMKBitmapResource *> *)bitmapResources interval:(int)interval repeatCnt:(int)repeatCnt;
73
77 - (instancetype)initWithBitmapResources:(NSArray<BMKBitmapResource *> *)bitmapResources intervals:(NSArray *)intervals;
78
83 - (instancetype)initWithBitmapResources:(NSArray<BMKBitmapResource *> *)bitmapResources intervals:(NSArray *)intervals repeatCnt:(int)repeatCnt;
84
85 @end
86
88 @interface BMKGifResource : BMKDrawableResource
89
92 - (instancetype)initWithGifData:(NSData *)gifData;
93
94 - (instancetype)initWithGifData:(NSData *)gifData repeatCount:(int)repeatCount;
95 @end
96
97 NS_ASSUME_NONNULL_END
BMKDrawableResource
Definition: BMKDrawableResource.h:13
BMKGifResource
GIF的多张图片，依次播放
Definition: BMKDrawableResource.h:89
BMKBitmapResource
Definition: BMKDrawableResource.h:17
BMKFrameResource
多张图片，依次播放
Definition: BMKDrawableResource.h:62