简体   繁体   English

使用 im4java 画一个圆圈

[英]Draw a circle using im4java

I need to draw a circle and save it as an image in a directory.我需要画一个圆圈并将其保存为目录中的图像。 I want to draw the image using im4java.我想使用 im4java 绘制图像。 I have tried to create, but there is no IMoperation available in im4java.我尝试创建,但是im4java中没有可用的IM操作。 Any help???任何帮助???

im4java is a wrapper to execute ImageMagick commands from your java code. im4java 是从 Java 代码执行 ImageMagick 命令的包装器。

As you want to call a custom command, not implemented in im4java as a standard method, then either extend im4java functionality to call this command (it is opensource) or use Apache Commons Exec to call this custom command.如果您想调用一个自定义命令,而不是在 im4java 中作为标准方法实现,那么要么扩展 im4java 功能来调用这个命令(它是开源的),要么使用Apache Commons Exec来调用这个自定义命令。

The ImageMagick command to draw a circle is explained here:绘制圆的 ImageMagick 命令解释如下:

http://www.imagemagick.org/Usage/draw/#circles http://www.imagemagick.org/Usage/draw/#circles

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM