-
public final class MaskableCanvas extends Canvas
Maskable canvas can mask text instead of drawing it to Canvas.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMaskableCanvas.Companion
-
Constructor Summary
Constructors Constructor Description MaskableCanvas(Canvas canvas)
-
Method Summary
-
-
Constructor Detail
-
MaskableCanvas
MaskableCanvas(Canvas canvas)
-
-
Method Detail
-
drawPosText
@Deprecated(message = Deprecated in Java) Unit drawPosText(CharArray text, Integer index, Integer count, FloatArray pos, Paint paint)
-
drawPosText
@Deprecated(message = Deprecated in Java) Unit drawPosText(String text, FloatArray pos, Paint paint)
-
drawText
Unit drawText(CharSequence text, Integer start, Integer end, Float x, Float y, Paint paint)
-
drawTextOnPath
Unit drawTextOnPath(CharArray text, Integer index, Integer count, Path path, Float hOffset, Float vOffset, Paint paint)
-
drawTextOnPath
Unit drawTextOnPath(String text, Path path, Float hOffset, Float vOffset, Paint paint)
-
drawTextRun
@RequiresApi(value = 23) Unit drawTextRun(CharArray text, Integer index, Integer count, Integer contextIndex, Integer contextCount, Float x, Float y, Boolean isRtl, Paint paint)
-
drawTextRun
@RequiresApi(value = 23) Unit drawTextRun(CharSequence text, Integer start, Integer end, Integer contextStart, Integer contextEnd, Float x, Float y, Boolean isRtl, Paint paint)
-
drawTextRun
@RequiresApi(value = 29) Unit drawTextRun(MeasuredText text, Integer start, Integer end, Integer contextStart, Integer contextEnd, Float x, Float y, Boolean isRtl, Paint paint)
-
isHardwareAccelerated
Boolean isHardwareAccelerated()
-
enableZ
@RequiresApi(value = 29) Unit enableZ()
-
disableZ
@RequiresApi(value = 29) Unit disableZ()
-
getDensity
Integer getDensity()
-
setDensity
Unit setDensity(Integer density)
-
getMaximumBitmapWidth
Integer getMaximumBitmapWidth()
-
getMaximumBitmapHeight
Integer getMaximumBitmapHeight()
-
saveLayer
Integer saveLayer(Float left, Float top, Float right, Float bottom, Paint paint, Integer saveFlags)
-
saveLayerAlpha
Integer saveLayerAlpha(RectF bounds, Integer alpha, Integer saveFlags)
-
saveLayerAlpha
Integer saveLayerAlpha(RectF bounds, Integer alpha)
-
saveLayerAlpha
Integer saveLayerAlpha(Float left, Float top, Float right, Float bottom, Integer alpha, Integer saveFlags)
-
saveLayerAlpha
Integer saveLayerAlpha(Float left, Float top, Float right, Float bottom, Integer alpha)
-
getSaveCount
Integer getSaveCount()
-
restoreToCount
Unit restoreToCount(Integer saveCount)
-
clipOutRect
@RequiresApi(value = 26) Boolean clipOutRect(RectF rect)
-
clipOutRect
@RequiresApi(value = 26) Boolean clipOutRect(Rect rect)
-
clipOutRect
@RequiresApi(value = 26) Boolean clipOutRect(Float left, Float top, Float right, Float bottom)
-
clipOutRect
@RequiresApi(value = 26) Boolean clipOutRect(Integer left, Integer top, Integer right, Integer bottom)
-
clipPath
@Deprecated(message = Deprecated in Java) Boolean clipPath(Path path, Region.Op op)
-
clipOutPath
@RequiresApi(value = 26) Boolean clipOutPath(Path path)
-
getDrawFilter
DrawFilter getDrawFilter()
-
setDrawFilter
Unit setDrawFilter(DrawFilter filter)
-
quickReject
Boolean quickReject(RectF rect, Canvas.EdgeType type)
-
quickReject
@RequiresApi(value = 30) Boolean quickReject(RectF rect)
-
quickReject
Boolean quickReject(Path path, Canvas.EdgeType type)
-
quickReject
@RequiresApi(value = 30) Boolean quickReject(Path path)
-
quickReject
Boolean quickReject(Float left, Float top, Float right, Float bottom, Canvas.EdgeType type)
-
quickReject
@RequiresApi(value = 30) Boolean quickReject(Float left, Float top, Float right, Float bottom)
-
getClipBounds
Boolean getClipBounds(Rect bounds)
-
drawPicture
Unit drawPicture(Picture picture)
-
drawPicture
Unit drawPicture(Picture picture, RectF dst)
-
drawPicture
Unit drawPicture(Picture picture, Rect dst)
-
drawArc
Unit drawArc(RectF oval, Float startAngle, Float sweepAngle, Boolean useCenter, Paint paint)
-
drawArc
Unit drawArc(Float left, Float top, Float right, Float bottom, Float startAngle, Float sweepAngle, Boolean useCenter, Paint paint)
-
drawBitmap
Unit drawBitmap(IntArray colors, Integer offset, Integer stride, Float x, Float y, Integer width, Integer height, Boolean hasAlpha, Paint paint)
-
drawBitmap
Unit drawBitmap(IntArray colors, Integer offset, Integer stride, Integer x, Integer y, Integer width, Integer height, Boolean hasAlpha, Paint paint)
-
drawBitmap
Unit drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint)
-
drawBitmapMesh
Unit drawBitmapMesh(Bitmap bitmap, Integer meshWidth, Integer meshHeight, FloatArray verts, Integer vertOffset, IntArray colors, Integer colorOffset, Paint paint)
-
drawColor
@RequiresApi(value = 29) Unit drawColor(Long color)
-
drawColor
Unit drawColor(Integer color, PorterDuff.Mode mode)
-
drawColor
@RequiresApi(value = 29) Unit drawColor(Integer color, BlendMode mode)
-
drawColor
@RequiresApi(value = 29) Unit drawColor(Long color, BlendMode mode)
-
drawLines
Unit drawLines(FloatArray pts, Paint paint)
-
drawPoints
Unit drawPoints(FloatArray pts, Integer offset, Integer count, Paint paint)
-
drawPoints
Unit drawPoints(FloatArray pts, Paint paint)
-
drawRoundRect
Unit drawRoundRect(Float left, Float top, Float right, Float bottom, Float rx, Float ry, Paint paint)
-
drawDoubleRoundRect
@RequiresApi(value = 29) Unit drawDoubleRoundRect(RectF outer, Float outerRx, Float outerRy, RectF inner, Float innerRx, Float innerRy, Paint paint)
-
drawDoubleRoundRect
@RequiresApi(value = 29) Unit drawDoubleRoundRect(RectF outer, FloatArray outerRadii, RectF inner, FloatArray innerRadii, Paint paint)
-
drawGlyphs
@RequiresApi(value = 31) Unit drawGlyphs(IntArray glyphIds, Integer glyphIdOffset, FloatArray positions, Integer positionOffset, Integer glyphCount, Font font, Paint paint)
-
drawVertices
Unit drawVertices(Canvas.VertexMode mode, Integer vertexCount, FloatArray verts, Integer vertOffset, FloatArray texs, Integer texOffset, IntArray colors, Integer colorOffset, ShortArray indices, Integer indexOffset, Integer indexCount, Paint paint)
-
drawRenderNode
@RequiresApi(value = 29) Unit drawRenderNode(RenderNode renderNode)
-
-
-
-