-
public class ImageRenderer
-
-
Field Summary
Fields Modifier and Type Field Description public final static ImageRendererINSTANCE
-
Method Summary
Modifier and Type Method Description final Function1<Canvas, Unit>createImageDataModelRenderCommand(ImageDataModel model, Shape shape, Paint paint, Matrix imageTransformation)Creates an image data model render command. final Function1<Canvas, Unit>createRenderCommand(BitmapImageDataModel $self, Shape shape, Paint paint, Matrix imageTransformation)final Function1<Canvas, Unit>createRenderCommand(ColorIntImageDataModel $self, Shape shape, Paint paint)final Function1<Canvas, Unit>createRenderCommand(DrawableImageDataModel $self, Shape shape, Paint paint, Matrix imageTransformation)final Function1<Canvas, Unit>bitmapRenderCommand(Paint paint, Bitmap bitmap, Matrix imageTransformation)final Function1<Canvas, Unit>paintRenderCommand(Shape shape, Paint paint)final PaintsetBitmap(Paint $self, Bitmap bitmap, Matrix shaderTransformation)-
-
Method Detail
-
createImageDataModelRenderCommand
final Function1<Canvas, Unit> createImageDataModelRenderCommand(ImageDataModel model, Shape shape, Paint paint, Matrix imageTransformation)
Creates an image data model render command.
NOTE: The render command can modify the Canvas that it draws on and does not restore the canvas. The Canvas has to be saved & restored manually if required.
-
createRenderCommand
final Function1<Canvas, Unit> createRenderCommand(BitmapImageDataModel $self, Shape shape, Paint paint, Matrix imageTransformation)
-
createRenderCommand
final Function1<Canvas, Unit> createRenderCommand(ColorIntImageDataModel $self, Shape shape, Paint paint)
-
createRenderCommand
final Function1<Canvas, Unit> createRenderCommand(DrawableImageDataModel $self, Shape shape, Paint paint, Matrix imageTransformation)
-
bitmapRenderCommand
final Function1<Canvas, Unit> bitmapRenderCommand(Paint paint, Bitmap bitmap, Matrix imageTransformation)
-
paintRenderCommand
final Function1<Canvas, Unit> paintRenderCommand(Shape shape, Paint paint)
-
-
-
-