Package com.myscript.iink
Interface IImagePainter
public interface IImagePainter
The ImagePainter converts rendering data into images in view e.g. for
integration into .docx exports.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a canvas to draw the image.void
prepareImage
(int width, int height, float dpi) Invoked before starting to draw an image.void
Invoked once image drawing is over.
-
Method Details
-
prepareImage
void prepareImage(int width, int height, float dpi) Invoked before starting to draw an image. This call is meant to enable preparation of the image destination in memory (e.g. memory allocation).- Parameters:
width
- the image width.height
- the image height.dpi
- the resolution of the image in dots per inch.
-
saveImage
Invoked once image drawing is over. Requests saving the image to disk.- Parameters:
path
- the image destination.- Throws:
IOException
- when an I/O operation fails.
-
createCanvas
ICanvas createCanvas()Creates a canvas to draw the image.- Returns:
- a canvas to draw the image.
- Since:
- 2.0
-