Package com.myscript.iink
Interface IImagePainter
-
public interface IImagePainterThe ImagePainter converts rendering data into images in view e.g. for integration into .docx exports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICanvascreateCanvas()Creates a canvas to draw the image.voidprepareImage(int width, int height, float dpi)Invoked before starting to draw an image.voidsaveImage(@NotNull java.lang.String path)Invoked once image drawing is over.
-
-
-
Method Detail
-
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
void saveImage(@NotNull @NotNull java.lang.String path) throws java.io.IOExceptionInvoked once image drawing is over. Requests saving the image to disk.- Parameters:
path- the image destination.- Throws:
java.io.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
-
-