summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-01-22 19:20:33 +0800
committerRi Xu <xuri.me@gmail.com>2017-01-22 19:20:33 +0800
commit81146218c72c02af181e053187ac2b8561f61e02 (patch)
tree9c06d4d1ea918f0e1c3a2d1e41c6bfb3eb70ef38 /picture.go
parent03234d6a254ea9fca674bf11564e88a5bd4d054f (diff)
Update README, godoc and fix typo.
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/picture.go b/picture.go
index e29ffd3..9a91938 100644
--- a/picture.go
+++ b/picture.go
@@ -14,22 +14,22 @@ import (
"strings"
)
-// AddPicture provides the method to add picture in a sheet by given xAxis, yAxis
-// and file path. For example:
+// AddPicture provides the method to add picture in a sheet by given offset
+// (xAxis, yAxis), scale (xScale, yScale) and file path. For example:
//
-// package main
+// package main
//
-// import (
-// "fmt"
-// "os"
-// _ "image/gif"
-// _ "image/jpeg"
-// _ "image/png"
+// import (
+// "fmt"
+// "os"
+// _ "image/gif"
+// _ "image/jpeg"
+// _ "image/png"
//
-// "github.com/Luxurioust/excelize"
-// )
+// "github.com/Luxurioust/excelize"
+// )
//
-// func main() {
+// func main() {
// xlsx := excelize.CreateFile()
// // Insert a picture.
// err := xlsx.AddPicture("Sheet1", "A2", "/tmp/image1.jpg", 0, 0, 1, 1)