Re: DLangUI: Rendering a generated image

2015-04-14 Thread Alex Parrill via Digitalmars-d-learn
I found the `ImageWidget` class in controls.d, but I'm still having the same issue. Tweaked code (replaced the section between `window.mainWidget = baseLayout;` and `baseLayout.addChild((new Button())...` auto img = Ref!DrawBuf(new ColorDrawBuf(W,H)); draw(cast(ColorDrawBuf) (

DLangUI: Rendering a generated image

2015-04-14 Thread Alex Parrill via Digitalmars-d-learn
What is the simplest way of rendering an application-generated image using DLangUI? I'm trying to render the outputs of some noise-generating functions, along with some controls to alter the parameters of that function. I didn't see an ImageWidget anywhere, so I tried making my own that takes