Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qeesung committed Oct 30, 2018
1 parent 22ac3f4 commit 2f0a0c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ import (
)

func main() {
// Create convert options
convertOptions := convert.DefaultOptions
convertOptions.FixedWidth = 100
convertOptions.FixedHeight = 40

// Create the image converter
converter := convert.NewImageConverter()
fmt.Print(converter.ImageFile2ASCIIString(imageFilename, convertOptions))
fmt.Print(converter.ImageFile2ASCIIString(imageFilename, &convertOptions))
}
```

Expand Down

0 comments on commit 2f0a0c7

Please sign in to comment.