Best way to display images with GTKD
Mike Wey
mike-wey at example.com
Sun Oct 1 20:45:09 UTC 2017
On 01-10-17 01:56, Psychological Cleanup wrote:
> I have to display images with a few controls: alpha channel, rotation,
> scaling, cropping. Generally it should be png but I want to be able to
> handle many images. The images will be memory based(I'll load the file
> in to memory then) and will be displayed in a drawing area.
>
> Any ideas how to go about this correctly?
For displaying an image you can use gtk.Image. Rotating, scaling and
cropping should be doable by loading the image into a cairo surface and
then applying the transformations.
But that doesn't support things like changing the alpha channel.
--
Mike Wey
More information about the Digitalmars-d-learn
mailing list