Class RenderCache
Assembly: Mapsui.Rendering.Skia.dll
Syntax
public class RenderCache : IRenderCache, ILabelCache, ISymbolCache, IVectorCache
Constructors
|
Edit this page
View Source
RenderCache(int)
Declaration
public RenderCache(int capacity = 10000)
Parameters
Type |
Name |
Description |
int |
capacity |
|
Properties
|
Edit this page
View Source
LabelCache
Declaration
public ILabelCache LabelCache { get; set; }
Property Value
|
Edit this page
View Source
SymbolCache
Declaration
public ISymbolCache SymbolCache { get; set; }
Property Value
|
Edit this page
View Source
VectorCache
Declaration
public IVectorCache? VectorCache { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetOrCreate(int)
Declaration
public IBitmapInfo GetOrCreate(int bitmapID)
Parameters
Type |
Name |
Description |
int |
bitmapID |
|
Returns
|
Edit this page
View Source
GetOrCreateLabel<T>(string?, LabelStyle, float, Func<LabelStyle, string?, float, ILabelCache, T>)
Declaration
public T GetOrCreateLabel<T>(string? text, LabelStyle style, float opacity, Func<LabelStyle, string?, float, ILabelCache, T> createLabelAsBitmap) where T : IBitmapInfo
Parameters
Returns
Type Parameters
|
Edit this page
View Source
GetOrCreatePaint<T>(Brush?, float, double, Func<Brush?, float, double, ISymbolCache, T>)
Declaration
public T GetOrCreatePaint<T>(Brush? brush, float opacity, double rotation, Func<Brush?, float, double, ISymbolCache, T> toPaint) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
GetOrCreatePaint<T>(Pen?, float, Func<Pen?, float, T>)
Declaration
public T GetOrCreatePaint<T>(Pen? pen, float opacity, Func<Pen?, float, T> toPaint) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
GetOrCreatePath<TPath, TGeometry>(Viewport, TGeometry, float, Func<TGeometry, Viewport, float, TPath>)
Declaration
public TPath GetOrCreatePath<TPath, TGeometry>(Viewport viewport, TGeometry geometry, float lineWidth, Func<TGeometry, Viewport, float, TPath> toPath) where TPath : class where TGeometry : class
Parameters
Returns
Type Parameters
Name |
Description |
TPath |
|
TGeometry |
|
|
Edit this page
View Source
GetOrCreateTypeface<T>(Font, Func<Font, T>)
Declaration
public T GetOrCreateTypeface<T>(Font font, Func<Font, T> createTypeFace) where T : class
Parameters
Type |
Name |
Description |
Font |
font |
|
Func<Font, T> |
createTypeFace |
|
Returns
Type Parameters
|
Edit this page
View Source
GetSize(int)
Declaration
public Size? GetSize(int bitmapId)
Parameters
Type |
Name |
Description |
int |
bitmapId |
|
Returns
Implements