|
| Image * | dl::createImage (const Size &size, const Color &col) |
| | 创建图像
|
| |
| Image * | dl::createImage (std::string_view path_name) |
| | 创建图像
|
| |
| Image * | dl::createImageSvg (std::string_view path_name, const Size &size) |
| | 创建图像 从svg
|
| |
| Image * | dl::createImageWebp (std::string_view path_name) |
| | 创建图像 从webp
|
| |
| Image * | dl::createImageWebp (BufferView buf) |
| |
| bool | dl::saveImage (const Image *img, std::string_view path_name) |
| | 保存到图像
|
| |
| bool | dl::Img::IsSupportFormat (std::string_view str, bool read) |
| | 是否支持的格式
|
| |
| void | dl::Img::CalcLeastRect (const Image *img, RectU &rect) |
| | 计算返回最小包围盒(去除边缘的全透明像素)
|
| |
| bool | dl::Img::IsHaveTranslucent (const Image *img, const RectU &rect) |
| | 返回是否包含非透明颜色
|
| |
| void | dl::Img::AddImageRect (Image *img_tar, const Image *img_src, const RectU &rect, const PointU &tar_xy) |
| | 添加另一个图像的部分到自己的位置上
|
| |
| void | dl::Img::SetAlphaZero (const Image *img) |
| | 设置透明色颜色为0,针对于某些颜色透明,但是其他通道非0
|
| |
| Image * | dl::Img::ResizeImage (const Image *img, const Size &size) |
| | 缩放图像
|
| |
| Image * | dl::Img::ResizeImage (const Image *img, Float scale) |
| |
| Image * | dl::Img::Extend (const Image *img, unsigned i, ExtendMode mode=ExtendMode::ZERO) |
| | 拓展图像边缘像素
|
| |
| void | dl::Img::BuildBorder (Image *img, unsigned i) |
| | 填充边缘像素按最近的像素
|
| |