图像处理类.
更多...
#include <VisualInterface.h>
|
| static DWORD | GetPixel (IMAGE *img, int i, int j) |
| | 获取二维坐标处像素值.
|
| |
| static void | GetScreenShot () |
| | 获取当前游戏截图(禁止高頻使用!).
|
| |
| static void | putstone (IMAGE *srcImg, IMAGE *dstImg, int x, int y, int stonesize, int stoneweight) |
| | 波纹模拟.
|
| |
| static void | calcnextframewave (IMAGE *srcImg, IMAGE *dstImg) |
| | 计算下一帧的振幅.
|
| |
| static void | calcimage (IMAGE *srcImg, IMAGE *dstImg) |
| | 用wave1来生成新的图形.
|
| |
| static void | drawnoise (Perlin p1) |
| | 绘制perlin噪音 消耗较大.
|
| |
| static void | FlipImage (IMAGE *srcImg, IMAGE *dstImg, bool bIsHorizontal=true) |
| | 变换
|
| |
| static void | MeanFilter (IMAGE *srcImg, IMAGE *dstImg, int radius) |
| | 滤波
|
| |
|
| static std::vector< short > | wave1 = { 0 } |
| | 当前时刻的振幅数据
|
| |
| static std::vector< short > | wave2 = {0} |
| | 上一时刻的振幅数据
|
| |
◆ calcimage()
| void ImageToolkit::calcimage |
( |
IMAGE * | srcImg, |
|
|
IMAGE * | dstImg ) |
|
static |
◆ calcnextframewave()
| void ImageToolkit::calcnextframewave |
( |
IMAGE * | srcImg, |
|
|
IMAGE * | dstImg ) |
|
static |
◆ drawnoise()
| void ImageToolkit::drawnoise |
( |
Perlin | p1 | ) |
|
|
static |
◆ FlipImage()
| void ImageToolkit::FlipImage |
( |
IMAGE * | srcImg, |
|
|
IMAGE * | dstImg, |
|
|
bool | bIsHorizontal = true ) |
|
static |
变换
镜像翻转变换.
- 参数
-
| [in] | srcImg | 原图像句柄 |
| [in] | dstImg | 目标图形句柄 |
| [in] | bIsHorizontal | 是否水平翻转 默认水平 |
◆ GetPixel()
| DWORD ImageToolkit::GetPixel |
( |
IMAGE * | img, |
|
|
int | i, |
|
|
int | j ) |
|
static |
获取二维坐标处像素值.
- 参数
-
| [in] | img | 图片句柄 |
| [in] | i | 像素行坐标i |
| [in] | j | 像素列坐标j |
- 返回
- 获取到的[i][j]像素
◆ GetScreenShot()
| void ImageToolkit::GetScreenShot |
( |
| ) |
|
|
static |
◆ MeanFilter()
| void ImageToolkit::MeanFilter |
( |
IMAGE * | srcImg, |
|
|
IMAGE * | dstImg, |
|
|
int | radius ) |
|
static |
滤波
快速均值滤波(模糊). 某一点rgb受半径里面所有像素rgb影响 例:所有r的总和/半径内像素的数量
- 参见
- ImageInterface::MeanBlur()
- 参数
-
| [in] | srcImg | 原图像句柄 |
| [in] | dstImg | 目标图形句柄 |
| [in] | radius | 内部限制了大小 |
◆ putstone()
| void ImageToolkit::putstone |
( |
IMAGE * | srcImg, |
|
|
IMAGE * | dstImg, |
|
|
int | x, |
|
|
int | y, |
|
|
int | stonesize, |
|
|
int | stoneweight ) |
|
static |
◆ GameplayStatics
| friend class GameplayStatics |
|
friend |
◆ World
◆ wave1
| std::vector< short > ImageToolkit::wave1 = { 0 } |
|
staticprivate |
◆ wave2
| std::vector< short > ImageToolkit::wave2 = {0} |
|
staticprivate |