GUI library for D

Adam D. Ruppe destructionator at gmail.com
Tue Apr 5 15:20:11 PDT 2011


Matthias Pleh wrote:
> Are you talking about the dImage project, with the display-X11/win32
> backends, on you side?

Yeah, that's the original version. I just finished doing the Windows
side (wasn't as bad as I thought) and put it all in one module. This
simplified version has no file format support yet.

http://arsdnet.net/dcode/simpledisplay.d

Usage example:

====

import simpledisplay;

void main() {
	auto image = new Image(255, 255);

	foreach(a; 0..255)
	foreach(b; 0..255)
		image.putPixel(a, b, Color(a, b, 0));

	image.display();
}

====

To compile:

dmd test.d simpleimage.d

Should work on both Windows and Linux the same way.


More information about the Digitalmars-d mailing list