September 03, 2015 Re: Initial feedback for std.experimental.image | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On 03/09/15 10:28 PM, Suliman wrote: > Hi! Is there any progress? Indeed! Quite a bit really. https://github.com/rikkimax/alphaPhobos/tree/master/source/std/experimental/graphic/image PNG should now be import/exportable. I have not ehh tested this just yet however. Building a test framework for it will be a rather major task and could take ~9 hours at least. I believe I'll be working on skewing today on stream, in about an hour. https://www.livecoding.tv/alphaglosined/ My focus isn't too much on the image library. More so on all the other code in that repository. My time line still has about a year on it till I'm feeling ready to start the PR process after all :) |
September 03, 2015 Re: Initial feedback for std.experimental.image | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Thursday, 3 September 2015 at 10:28:50 UTC, Suliman wrote: > Hi! Is there any progress? Update, during todays stream. Instead of adding scew manipulation instead adding range clever support functions (createImageFrom and assignTo). ImageImpl image1; // input ImageImpl[2] image2; // buffers write("myfile.png", image1.rangeOf .map!(p => { p.y += p.x * addY; p.height = addY * p.height; }) .createImageFrom!ImageImpl(image2[0], theAllocator()) .assignTo(image2[0], RGB8(255, 255, 255)) .rangeOf .flipHorizontalRange .rotate90Range .flipVerticalRange .createImageFrom!ImageImpl(image2[1], theAllocator()) .copyInto(image2[1]) .asPNG.toBytes() ); theAllocator().dispose(image[0]); theAllocator().dispose(image[1]); |
Copyright © 1999-2021 by the D Language Foundation