GLMapVectorImageTransform
Objective-C
@interface GLMapVectorImageTransform : NSObject
Swift
class GLMapVectorImageTransform : NSObject
GLMapVectorImageTransform is used to customize the vector image rendering process and hold all rendering parameters together.
-
Color cache key.
Declaration
Objective-C
@property (strong, readonly) NSString *_Nullable colorCacheKey;Swift
var colorCacheKey: String? { get } -
Color transform block.
Declaration
Objective-C
@property (strong, readonly) ColorTransformBlock _Nullable color;Swift
var color: ColorTransformBlock? { get } -
Rect cache key.
Declaration
Objective-C
@property (strong, readonly) NSString *_Nullable rectCacheKey;Swift
var rectCacheKey: String? { get } -
Rect transform block.
Declaration
Objective-C
@property (strong, readonly) RectTransformBlock _Nullable rect;Swift
var rect: RectTransformBlock? { get } -
Sets the scale to use during rendering.
Declaration
Objective-C
- (void)setScale:(double)scale;Swift
func setScale(_ scale: Double)Parameters
scaleThe scale factor.
-
Sets the expected size of the image.
Declaration
Objective-C
- (void)setSize:(CGSize)size inCenter:(BOOL)inCenter;Swift
func setSize(_ size: CGSize, inCenter: Bool)Parameters
sizeThe target size.
inCenterWhen ‘YES’, the image is placed in the center of the canvas.
-
Sets the tint to use during rendering.
Parameters
tintThe tint color.
-
Sets the block to transform colors of an image.
Declaration
Objective-C
- (void)setColor:(nonnull ColorTransformBlock)color colorCacheKey:(nonnull NSString *)colorCacheKey;Swift
func setColor(_ color: @escaping ColorTransformBlock, colorCacheKey: String)Parameters
colorThe block that modifies colors.
colorCacheKeyThe name of the color in the cache key.
-
Sets the rect transform block.
Declaration
Objective-C
- (void)setRect:(nonnull RectTransformBlock)rect rectCacheKey:(nonnull NSString *)rectCacheKey;Swift
func setRect(_ rect: @escaping RectTransformBlock, rectCacheKey: String)Parameters
rectThe block that modifies the rect of the image.
rectCacheKeyThe key for the image with the updated rect.
Install in Dash
GLMapVectorImageTransform Class Reference