iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIAssetManager2D
@protocol ISCIAssetManager2D <ISCIDisposable>
Defines protocol with method for creation of assets used for drawing on IRenderSurface via IRenderContext2D methods.
See
ISCIRenderSurface.
See
ISCIRenderContext2D.
-
Creates a
ISCIPen2Dinstance from specifiedSCIPenStyle.Declaration
Objective-C
- (nonnull id<ISCIPen2D>)penWithStyle:(nonnull SCIPenStyle *)style;Swift
func pen(with style: SCIPenStyle) -> any ISCIPen2DParameters
styleThe SCIPenStyle to create pen from.
Return Value
The
ISCIPen2Dinstance. -
Creates a
ISCIPen2Dinstance from specifiedSCIPenStyle.Declaration
Objective-C
- (nonnull id<ISCIPen2D>)penWithStyle:(nonnull SCIPenStyle *)style andOpacity:(float)opacity;Swift
func pen(with style: SCIPenStyle, andOpacity opacity: Float) -> any ISCIPen2DParameters
styleThe SCIPenStyle to create pen from.
opacityThe opacity of created pen.
Return Value
The
ISCIPen2Dinstance. -
Creates a
ISCIBrush2Dinstance from specifiedSCIBrushStyle.Declaration
Objective-C
- (nonnull id<ISCIBrush2D>)brushWithStyle:(nonnull SCIBrushStyle *)style;Swift
func brush(with style: SCIBrushStyle) -> any ISCIBrush2DParameters
styleThe BrushStyle to create brush from.
Return Value
The
ISCIBrush2Dinstance. -
Creates a
ISCIBrush2Dinstance from specifiedSCIBrushStyleDeclaration
Objective-C
- (nonnull id<ISCIBrush2D>)brushWithStyle:(nonnull SCIBrushStyle *)style textureMappingMode: (SCITextureMappingMode)textureMappingMode;Swift
func brush(with style: SCIBrushStyle, textureMappingMode: SCITextureMappingMode) -> any ISCIBrush2DParameters
styleThe BrushStyle to create brush from.
textureMappingModeThe texture mapping which will be used by created brush.
Return Value
The
ISCIBrush2Dinstance. -
Creates a
ISCIBrush2Dinstance from specifiedSCIBrushStyle.Declaration
Objective-C
- (nonnull id<ISCIBrush2D>)brushWithStyle:(nonnull SCIBrushStyle *)style textureMappingMode: (SCITextureMappingMode)textureMappingMode andOpacity:(float)opacity;Swift
func brush(with style: SCIBrushStyle, textureMappingMode: SCITextureMappingMode, andOpacity opacity: Float) -> any ISCIBrush2DParameters
styleThe BrushStyle to create brush from.
textureMappingModeThe texture mapping which will be used by created brush.
opacityThe opacity of created brush.
Return Value
The
ISCIBrush2Dinstance. -
Creates a
ISCITexture2Dinstance fromSCIBitmap.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)textureWithBitmap:(nonnull SCIBitmap *)bitmap;Swift
func texture(with bitmap: SCIBitmap) -> any ISCITexture2DParameters
bitmapThe SCIBitmap instance to create texture from.
Return Value
The
ISCITexture2Dinstance. -
Creates a
ISCITexture2Dinstance from region ofSCIBitmap.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)textureWithBitmap:(nonnull SCIBitmap *)bitmap region:(CGRect)bitmapRegion;Swift
func texture(with bitmap: SCIBitmap, region bitmapRegion: CGRect) -> any ISCITexture2DParameters
bitmapThe SCIBitmap instance to create texture from.
bitmapRegionThe region of bitmap in pixels to create texture from.
Return Value
The
ISCITexture2Dinstance. -
Creates a
ISCITexture2Dinstance with specified width and height which can be rendered onISCIRenderSurfaceviaISCIRenderContext2Dmethods.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)textureWithWidth:(int)width height:(int)height;Swift
func texture(withWidth width: Int32, height: Int32) -> any ISCITexture2DParameters
widthThe width of texture in pixels.
heightThe hegith of texture in pixels.
Return Value
The
ISCITexture2Dinstance. -
Creates a
ISCITexture2D instance with specified width and height which can be rendered onISCIRenderSurfaceviaISCIRenderContext2D` methods.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)textureWithData:(nonnull void *)data andSize:(CGSize)size;Swift
func texture(withData data: UnsafeMutableRawPointer, andSize size: CGSize) -> any ISCITexture2DParameters
dataThe data with which texture will be initialized.
sizeThe size of texture in pixels.
Return Value
The
ISCITexture2Dinstance. -
Creates a
ISCITexture2D instance with specified width and height which can be rendered onISCIRenderSurfaceviaISCIRenderContext2D` methods.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)textureWithFloatData:(nonnull void *)data andSize:(CGSize)size;Swift
func texture(withFloatData data: UnsafeMutableRawPointer, andSize size: CGSize) -> any ISCITexture2DParameters
dataThe data with which texture will be initialized.
sizeThe size of texture in pixels.
Return Value
The
ISCITexture2Dinstance. -
Gets the resource by specified
resourceId.Declaration
Objective-C
- (nonnull id<ISCIDisposable>)getResource:(nonnull SCIResourceId *)resourceId;Swift
func getResource(_ resourceId: SCIResourceId) -> any ISCIDisposableParameters
resourceIdThe resource id.
Return Value
The resource associated with specified
resourceId. -
Checks if asset manager contains any resource associated with
resourceId.Declaration
Objective-C
- (BOOL)hasResource:(nonnull SCIResourceId *)resourceId;Swift
func hasResource(_ resourceId: SCIResourceId) -> BoolParameters
resourceIdThe resource id.
Return Value
YES if asset manager contains any resource, otherwise - NO.
-
Store the specified
resourcein this asset manager.Declaration
Objective-C
- (void)storeResource:(nonnull SCIResourceId *)resourceId resource:(nonnull id<ISCIDisposable>)resource;Swift
func storeResource(_ resourceId: SCIResourceId, resource: any ISCIDisposable)Parameters
resourceIdThe resource id.
resourceThe resource to store.
-
Tries to dispose resource associated with specified
resourceId.Declaration
Objective-C
- (void)disposeResource:(nonnull SCIResourceId *)resourceId;Swift
func disposeResource(_ resourceId: SCIResourceId)Parameters
resourceIdThe resource id.
View on GitHub