All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zhao.algorithmMagic.integrator.launcher.ImageRenderingLauncher Maven / Gradle / Ivy

There is a newer version: 1.42
Show newest version
package zhao.algorithmMagic.integrator.launcher;

/**
 * 图像绘制集成器对应的图像绘制启动器,您需要在其中指定图像输出目录与图像矩阵。
 * 

* The image drawing launcher corresponding to the image drawing integrator, where you need to specify the image output directory and image matrix. * * @param 需要提供给集成器的矩阵对象数据类型。 * 2023/2/9 12:01 * @author 赵凌宇 */ public interface ImageRenderingLauncher extends Launcher> { /** * 将图像矩阵提供给集成器去使用。 * * @return 一个代表图像中像素数值的矩阵对象,其中的每一个元素应代表一个像素颜色数值! *

* A matrix object representing the pixel value in the image. Each element in the matrix should represent a pixel color value! */ T returnMatrix(); /** * 获取到图片的宽度 *

* Get the width of the picture * * @return 在这里的返回值会被集成器获取到并作为图片的宽度。 *

* The return value here will be obtained by the integrator and used as the width of the image. */ int returnImageWeight(); /** * 获取到图片的高度 *

* Get the height of the picture * * @return 在这里的返回值会被集成器获取到并作为图片的高度 *

* The return value here will be obtained by the integrator and used as the height of the image. */ int returnImageHeight(); /** * 获取到本次绘制图像中的像素倍率,倍率越大,矩阵中的一个元素所代表的像素范围旧越大。 *

* Obtain the pixel magnification in the current drawn image. The larger the magnification, the larger the range of pixels represented by an element in the matrix. * * @return 在这里的返回值会被集成器获取到并作为图片的像素倍率. *

* The return value here will be obtained by the integrator and used as the pixel magnification of the image. */ int pixelMagnification(); /** * 获取到绘制时的编号模式,在绘制的时候可以为每一个矩阵对应元素的负责范围的位置打上一个编号。 *

* Get the numbering mode when drawing. When drawing, you can mark a number for the position of the responsible range of the corresponding element of each matrix. * * @return 如果设置为true 代表需要进行编号的标记,在输出的图片上会有编号 *

* If it is set to true, it means that the mark to be numbered will be numbered on the output picture */ boolean isWriteNumber(); /** * 获取到图像的输出路径。 *

* Gets the output path to the image. * * @return 在这里返回的字符串会被集成器获取到并作为图片的输出路径使用。 *

* The string returned here will be obtained by the integrator and used as the output path of the image. */ String returnOutPath(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy