public interface IAssetManager2D
extends com.scichart.core.framework.IDisposable
IRenderSurface
via IRenderContext2D
methodsIRenderSurface
,
IRenderContext2D
Modifier and Type | Method and Description |
---|---|
IBrush2D |
createBrush(BrushStyle brushStyle)
Creates a
IBrush2D instance from specified BrushStyle |
IBrush2D |
createBrush(BrushStyle brushStyle,
TextureMappingMode textureMappingMode)
Creates a
IBrush2D instance from specified BrushStyle |
IBrush2D |
createBrush(BrushStyle brushStyle,
TextureMappingMode textureMappingMode,
float opacity)
Creates a
IBrush2D instance from specified BrushStyle |
ICanvasTexture2D |
createCanvasTexture(int width,
int height)
Creates a special kind of
ITexture2D with specified width and height which can be used by IRenderContext2D.drawCanvasTexture(ICanvasTexture2D, Action1) method which allows to render content of texture via Canvas API |
IFont |
createFont(FontStyle fontStyle)
|
IPen2D |
createPen(PenStyle penStyle)
|
IPen2D |
createPen(PenStyle penStyle,
float opacity)
|
IPixelTexture2D |
createTexture(android.graphics.Bitmap bitmap)
Creates a
ITexture2D instance from Bitmap |
IPixelTexture2D |
createTexture(android.graphics.Bitmap bitmap,
android.graphics.RectF bitmapRegion)
Creates a
ITexture2D instance from region of Bitmap |
IPixelTexture2D |
createTexture(int width,
int height)
Creates a
ITexture2D instance with specified width and height which can be rendered on IRenderSurface via IRenderContext2D methods |
void |
disposeResource(ResourceId resourceId)
Tries to dispose resource associated with specified
resourceId |
com.scichart.core.framework.IDisposable |
getResource(ResourceId resourceId)
Gets the resource by specified
resourceId |
boolean |
hasResource(ResourceId resourceId)
Checks if asset manager contains any resource associated with
resourceId |
void |
storeResource(ResourceId resourceId,
com.scichart.core.framework.IDisposable resource)
Store the specified
resource in this asset manager |
IPen2D createPen(PenStyle penStyle)
penStyle
- The PenStyle to create pen fromIPen2D
instanceIPen2D createPen(PenStyle penStyle, float opacity)
penStyle
- The FontStyle to create pen fromopacity
- The opacity of created penIPen2D
instanceIBrush2D createBrush(BrushStyle brushStyle)
IBrush2D
instance from specified BrushStyle
brushStyle
- The BrushStyle to create brush fromIBrush2D
instanceIBrush2D createBrush(BrushStyle brushStyle, TextureMappingMode textureMappingMode)
IBrush2D
instance from specified BrushStyle
brushStyle
- The BrushStyle to create brush fromtextureMappingMode
- The texture mapping which will be used by created brushIBrush2D
instanceIBrush2D createBrush(BrushStyle brushStyle, TextureMappingMode textureMappingMode, float opacity)
IBrush2D
instance from specified BrushStyle
brushStyle
- The BrushStyle to create brush fromtextureMappingMode
- The texture mapping which will be used by created brushopacity
- The opacity of created brushIBrush2D
instanceIFont createFont(FontStyle fontStyle)
fontStyle
- The FontStyle to create pen fromIFont
instanceIPixelTexture2D createTexture(android.graphics.Bitmap bitmap)
ITexture2D
instance from Bitmapbitmap
- The bitmap to create texture fromITexture2D
instanceIPixelTexture2D createTexture(android.graphics.Bitmap bitmap, android.graphics.RectF bitmapRegion)
ITexture2D
instance from region of Bitmapbitmap
- The bitmap to create texture frombitmapRegion
- The region of bitmap in pixels to create texture fromITexture2D
instanceIPixelTexture2D createTexture(int width, int height)
ITexture2D
instance with specified width and height which can be rendered on IRenderSurface
via IRenderContext2D
methodswidth
- The width of texture in pixelsheight
- The hegith of texture in pixelsITexture2D
instanceICanvasTexture2D createCanvasTexture(int width, int height)
ITexture2D
with specified width and height which can be used by IRenderContext2D.drawCanvasTexture(ICanvasTexture2D, Action1)
method which allows to render content of texture via Canvas APIwidth
- The width of texture in pixelsheight
- The hegith of texture in pixelsITexture2D
instancecom.scichart.core.framework.IDisposable getResource(ResourceId resourceId)
resourceId
resourceId
- The resource idresourceId
boolean hasResource(ResourceId resourceId)
resourceId
resourceId
- The resource idvoid storeResource(ResourceId resourceId, com.scichart.core.framework.IDisposable resource)
resource
in this asset managerresourceId
- The resource idresource
- The resource to storevoid disposeResource(ResourceId resourceId)
resourceId
resourceId
- The resource id