On Sunday, 21 June 2015 at 15:42:39 UTC, Rikki Cattermole wrote:
interface IImage(COLOR) {
@property {
size_t width() @nogc nothrow;
size_t height() @nogc nothrow;
void* storage() @nogc nothrow;
}
COLOR pixelAt(size_t x, size_t y) @nogc;
void pixelStoreAt(size_t x, size_t y, COLOR value) @nogc;
// COLOR opIndex(size_t x, size_t y)
// void opIndexAssign(COLOR value, size_t x, size_t y)
}
What about alpha? I don't see it on "color" or "IImage".
Anyway I always hope to have something like antigrain (heavily
template based library for c++, really really fast!), implemented
in D. Maybe you should check it for some ideas.