On Mon, May 11, 2020 at 4:28 AM robert engels <reng...@ix.netcom.com> wrote:
> All of the code to do scaling and cropping in the ‘image’ package in the 
> stdlib.

Cropping is in the stdlib but scaling is not. Various scaling
algorithms (e.g. nearest neighbor, Catmull-Rom) are in the
golang.org/x/image/draw package instead. As
https://godoc.org/golang.org/x/image/draw says, "This package is a
superset of and a drop-in replacement for the image/draw package in
the standard library".

https://godoc.org/golang.org/x/image/draw#example-Draw has some example code.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOeFMNXO6J87er5Gw_m782qjP5OHhoAnnvTyLpPBv6C%2B%2B16eHA%40mail.gmail.com.

Reply via email to