Rayerd/dfl — pull request #41 by shoo (2013-11-14 13:28:39+00:00)
Title: Add enhanced meta file

This pull request introduce Enhanced Meta File(*.emf) to DFL.

Following code is sample:
```d
import dfl.all;
pragma(lib, "dfl");

void main()
{
Application.enableVisualStyles();
auto f = new Form;
f.clientSize = Size(640, 480);
auto g = new EmfGraphics(f.clientRectangle, "test.emf");
auto pen = new Pen(Color.fromArgb(255,255,0,0));
g.drawLine(pen, 100, 100, 640, 480);
f.paint ~= (Object o, PaintEventArgs e)
{
auto emf = g.toEnhancedMetaFile();
emf.drawStretched(e.graphics, f.clientRectangle);
};

f.click ~= (Object o, EventArgs e)
{
auto emf = new EnhancedMetaFile("test.emf");
emf.draw(f.createGraphics(), Point(0, 0));
};
Application.run(f);
}
```

This code make a file "test.emf" and draw on the window. If filename is dropped, drawing is performed in memory.
In addition, sample shows way to use "test.emf" file in click event.