public class AndroidCanvas extends Canvas
Canvas.Composite, Canvas.Drawable, Canvas.LineCap, Canvas.LineJoinCloseable.Set, Closeable.Util| Constructor and Description |
|---|
AndroidCanvas(Graphics gfx,
AndroidImage image) |
| Modifier and Type | Method and Description |
|---|---|
float |
alpha() |
Canvas |
clear() |
Canvas |
clearRect(float x,
float y,
float width,
float height) |
Canvas |
clip(Path clipPath) |
Canvas |
clipRect(float x,
float y,
float width,
float height) |
Gradient |
createGradient(Gradient.Config cfg) |
Path |
createPath() |
Canvas |
drawLine(float x0,
float y0,
float x1,
float y1) |
Canvas |
drawPoint(float x,
float y) |
Canvas |
drawText(String text,
float x,
float y) |
Canvas |
fillCircle(float x,
float y,
float radius) |
Canvas |
fillPath(Path path) |
Canvas |
fillRect(float x,
float y,
float width,
float height) |
Canvas |
fillRoundRect(float x,
float y,
float width,
float height,
float radius) |
Canvas |
fillText(TextLayout layout,
float x,
float y) |
Canvas |
restore() |
Canvas |
rotate(float angle) |
Canvas |
save() |
Canvas |
scale(float x,
float y) |
Canvas |
setAlpha(float alpha) |
Canvas |
setCompositeOperation(Canvas.Composite composite) |
Canvas |
setFillColor(int color) |
Canvas |
setFillGradient(Gradient gradient) |
Canvas |
setFillPattern(Pattern pattern) |
Canvas |
setLineCap(Canvas.LineCap cap) |
Canvas |
setLineJoin(Canvas.LineJoin join) |
Canvas |
setMiterLimit(float miter) |
Canvas |
setStrokeColor(int color) |
Canvas |
setStrokeWidth(float strokeWidth) |
Image |
snapshot() |
Canvas |
strokeCircle(float x,
float y,
float radius) |
Canvas |
strokePath(Path path) |
Canvas |
strokeRect(float x,
float y,
float width,
float height) |
Canvas |
strokeRoundRect(float x,
float y,
float width,
float height,
float radius) |
Canvas |
strokeText(TextLayout layout,
float x,
float y) |
Canvas |
transform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy) |
Canvas |
translate(float x,
float y) |
public AndroidCanvas(Graphics gfx, AndroidImage image)
public float alpha()
public Canvas clearRect(float x, float y, float width, float height)
public Canvas clipRect(float x, float y, float width, float height)
public Path createPath()
createPath in class Canvaspublic Gradient createGradient(Gradient.Config cfg)
createGradient in class Canvaspublic Canvas drawLine(float x0, float y0, float x1, float y1)
public Canvas fillCircle(float x, float y, float radius)
fillCircle in class Canvaspublic Canvas fillRect(float x, float y, float width, float height)
public Canvas fillRoundRect(float x, float y, float width, float height, float radius)
fillRoundRect in class Canvaspublic Canvas fillText(TextLayout layout, float x, float y)
public Canvas setCompositeOperation(Canvas.Composite composite)
setCompositeOperation in class Canvaspublic Canvas setFillColor(int color)
setFillColor in class Canvaspublic Canvas setFillGradient(Gradient gradient)
setFillGradient in class Canvaspublic Canvas setFillPattern(Pattern pattern)
setFillPattern in class Canvaspublic Canvas setLineCap(Canvas.LineCap cap)
setLineCap in class Canvaspublic Canvas setLineJoin(Canvas.LineJoin join)
setLineJoin in class Canvaspublic Canvas setMiterLimit(float miter)
setMiterLimit in class Canvaspublic Canvas setStrokeColor(int color)
setStrokeColor in class Canvaspublic Canvas setStrokeWidth(float strokeWidth)
setStrokeWidth in class Canvaspublic Canvas strokeCircle(float x, float y, float radius)
strokeCircle in class Canvaspublic Canvas strokePath(Path path)
strokePath in class Canvaspublic Canvas strokeRect(float x, float y, float width, float height)
strokeRect in class Canvaspublic Canvas strokeRoundRect(float x, float y, float width, float height, float radius)
strokeRoundRect in class Canvaspublic Canvas strokeText(TextLayout layout, float x, float y)
strokeText in class Canvaspublic Canvas transform(float m11, float m12, float m21, float m22, float dx, float dy)
Copyright © 2015. All Rights Reserved.