mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Move examples to one file
This commit is contained in:
parent
a0a018de16
commit
c7fe0bb79e
3 changed files with 3 additions and 42 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue