From 2f0a0c7dac31df55b4c3f458d66cacd5121eafa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E4=B8=96=E6=88=90?= Date: Tue, 30 Oct 2018 15:12:37 +0800 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 288fa86..ccb20cd 100644 --- a/README.md +++ b/README.md @@ -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)) } ``` -- 2.45.2