public abstract class RenderContextBase extends com.scichart.core.framework.DisposableBase implements IRenderContext2D
IRenderContext2D
implementors, allowing rendering of pens, brushes, sprites and textures on the IRenderSurface
Constructor and Description |
---|
RenderContextBase() |
Modifier and Type | Method and Description |
---|---|
void |
drawSprite(ITexture2D sprite,
float x,
float y)
Draws a sprite at specified x, y coordinate
|
void |
drawSprites(ITexture2D sprite,
float[] points,
int startIndex,
int count)
Draws a series of sprites.
|
void |
drawTexture(ITexture2D texture,
float[] points,
int startIndex,
int count)
Draws a series of textures.
|
void |
drawTexture(ITexture2D texture,
float x1,
float y1,
float x2,
float y2)
Fills a single rectangle on the
IRenderSurface using the specified ITexture2D |
close, tryDispose, tryDispose, tryDispose, tryDispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginLine, beginTextDrawing, beginTrianglesStrip, clear, drawCanvasTexture, drawEllipse, drawEllipse, drawEllipse, drawEllipses, drawEllipses, drawEllipses, drawLine, drawLines, drawLinesStrip, drawRect, drawRects, drawSprite, drawSprites, drawText, drawTexture, drawTexture, drawTrianglesStrip, fillRect, fillRects, getViewportHeight, getViewportWidth, restore, rotate, save, scale, setClipRect, setTexturePixels, setTexturePixels, translate
public final void drawSprite(ITexture2D sprite, float x, float y)
drawSprite
in interface IRenderContext2D
sprite
- The sprite to drawx
- The x-coordinate in pixelsy
- The y-coordinate in pixelspublic final void drawSprites(ITexture2D sprite, float[] points, int startIndex, int count)
drawSprites
in interface IRenderContext2D
sprite
- The spite to drawpoints
- Array of points to draw [x0 y0 x1 y1 x2 y2 ...]startIndex
- Start index in points array to start drawing withcount
- The amount of points to draw from points arraypublic final void drawTexture(ITexture2D texture, float x1, float y1, float x2, float y2)
IRenderSurface
using the specified ITexture2D
drawTexture
in interface IRenderContext2D
texture
- The texture to drawx1
- The x1 coordinate in pixelsy1
- The y1 coordinate in pixelsx2
- The x2 coordinate in pixelsy2
- The y2 coordinate in pixelspublic final void drawTexture(ITexture2D texture, float[] points, int startIndex, int count)
drawTexture
in interface IRenderContext2D
texture
- The texture to drawpoints
- Array of points to draw [x0 y0 x1 y1 ...]startIndex
- Start index in points array to start drawing withcount
- The amount of points to draw from points array