Matrix transformations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bake 52b5af01b8 update readme with examples 3 weeks ago
assets update readme with examples 3 weeks ago
.gitignore Added a .gitignore 1 year ago
README.md update readme with examples 3 weeks ago
morphology.go Fixed dilate 1 year ago
morphology_test.go Fixed dilate 1 year ago
transform.go don't return errors 3 weeks ago
transform_test.go update readme with examples 3 weeks ago

README.md

Transform

GoDoc

Rotate, Scale, Shear and Translate draw.Images.

Function Output
Original Original
transform.Rotate(img, 45) Rotate
transform.Rotate(img, 90) Rotate
transform.Shear(img, 1.25, 0) Shear
transform.Translate(img, 150, 150) Shear
transform.Scale(img, 0.75, 0.75) Scale
transform.Scale(img, 1.5, 1.5)
transform.Rotate(img, 45)
Scale
transform.MirrorX(img) MirrorX
transform.MirrorY(img) MirrorY