Draws text camera image file, using GraphicsMagick. By default, the text box is drawn to the bottom-left corner of the image. If no text box is passed, the default values of the derived type are used.
The function returns the following error codes:
E_EMPTY
if text or image path are empty.E_IO
if GraphicsMagick command execution failed.E_NOT_FOUND
if image at given path does no exist.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path |
Image file path. |
||
character(len=*), | intent(in) | :: | text |
Text to add. |
||
type(gm_text_box_type), | intent(in), | optional | :: | text_box |
Image text box type. |
|
character(len=:), | intent(out), | optional, | allocatable | :: | command |
Executed command. |