From 81146218c72c02af181e053187ac2b8561f61e02 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 22 Jan 2017 19:20:33 +0800 Subject: Update README, godoc and fix typo. --- picture.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'picture.go') 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) -- cgit v1.2.1