How to resize an image ? 🤔
Ferhat Kurtulmuş
aferust at gmail.com
Fri Dec 25 21:05:19 UTC 2020
On Friday, 25 December 2020 at 20:59:03 UTC, vnr wrote:
> Hello 😺
>
> For a small "script" that generates printable files, I would
> need to change the size of an image (which is loaded into
> memory as an array of bytes) to shrink it to scale if it
> exceeds the A4 page size.
>
> To load the images into memory and generate a PDF, I use the
> "printed" package. It is not very provided but is sufficient
> for my use, I just need the resize option... Is there a
> relatively simple way to do this?
>
> Thank you.
Check this out:
https://github.com/adamdruppe/arsd/blob/master/image.d#L434
More information about the Digitalmars-d-learn
mailing list