- dlib , , - - , , , -, , XML . - ( 2014 ), .
dlib :
import dlib.image;
auto image = new Image!(PixelFormat.RGB8)(100, 50);
foreach(y; 0 .. image.height)
foreach(x; 0 .. image.width)
image[x, y] = Color4f(x * 2 / 255.0f, 0, 0);
savePNG(image, "test.png");
, , ? ..
If you build an application using dub(which you probably should) using the last and best of dlib is as easy as adding "dlib": "~master"to yours dependencies.
source
share