anthonynsimon / bild

Image processing algorithms in pure Go
MIT License
3.99k stars 213 forks source link

Add Scale functionality #27

Open lloeki opened 8 years ago

lloeki commented 8 years ago

Apply a scale transformation that operates similar to the rotation one with regards to the viewport/canvas (i.e fill blanks, crop out-of-canvas data).

It's exceedingly useful when thinking about processing that applies steps in an automated pipeline, such as rotate -> scale -> translate -> crop.

Use case example: http://codepen.io/lloeki/pen/BzoyNJ