My bad, I didn’t read the API docs completely. Kind of a strange interface 
declaration in the stdlib image package - that there is only a single rectangle 
for Draw() and it is bounded by the two images.

> On May 10, 2020, at 5:57 PM, Nigel Tao <nigel...@golang.org> wrote:
> 
> 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.

-- 
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/20997C39-CEA7-4395-877F-7A61C659C468%40ix.netcom.com.

Reply via email to