- blur
Image blur(Image image, float r)
- blur
Image blur(Image image, int width, int height, float r)
- blur
Image blur(Image image, float[][] otherKernel)
- gausKernel
float[][] gausKernel(int width, int height, float sigma)
Generates a gauss matrix.
- gausKernel
float[][] gausKernel(float r)
Generates a gauss matrix.
- imageFrom
Image imageFrom(Range range, uint width, uint height)
Converts a sequence of colors to a picture from the input range.
- reversed
auto reversed(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
- rotateImage
Image rotateImage(Image image, float angle, Vecf center)
Rotate the picture by the specified angle from the specified center.
- saveImageInFile
void saveImageInFile(Image image, string path)
- strip
Image[] strip(Image image, int x, int y, int w, int h)
Divides the picture into frames.
- unite
Image unite(Image a, Image b, Vecf posA, Vecf posB)
Combining two paintings into one using color mixing.
- validateImageData
bool validateImageData(ubyte[] data, uint w, uint h)
Checks if the data for the image is valid.
A module for manipulating pictures, processing and transforming them.
Using the library, you can load images directly from files with a certain limitation in types (see imagefmt). Also, the image can be manipulated: blur, , .
Blur can be applied simply by calling the function with the picture as an argument. At the exit, it will render the image with blur. Example:
Also, you can set a custom kernel to use, let's say: