Move examples to one file

This commit is contained in:
nxshock 2017-06-30 23:50:14 +05:00
parent a0a018de16
commit c7fe0bb79e
3 changed files with 3 additions and 42 deletions

View file

@ -9,6 +9,7 @@ import (
"github.com/nxshock/colorcrop"
)
// Simple remove of white borders.
func ExampleCrop() {
log.SetFlags(0)
@ -31,6 +32,7 @@ func ExampleCrop() {
png.Encode(croppedFile, croppedImage)
}
// Remove white borders with custom color comparator.
func ExampleCropWithComparator() {
log.SetFlags(0)