filter.java
来自「Sunflow是一个照片级的渲染系统」· Java 代码 · 共 26 行
JAVA
26 行
package org.sunflow.core;
/**
* Represents a multi-pixel image filter kernel.
*/
public interface Filter {
/**
* Width in pixels of the filter extents. The filter will be applied to the
* range of pixels within a box of <code>+/- getSize() / 2</code> around
* the center of the pixel.
*
* @return width in pixels
*/
public float getSize();
/**
* Get value of the filter at offset (x, y). The filter should never be
* called with values beyond its extents but should return 0 in those cases
* anyway.
*
* @param x x offset in pixels
* @param y y offset in pixels
* @return value of the filter at the specified location
*/
public float get(float x, float y);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?