summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorjianxinhou <51222175+jianxinhou@users.noreply.github.com>2022-12-01 10:44:28 +0800
committerGitHub <noreply@github.com>2022-12-01 10:44:28 +0800
commit5e0953d7783ce65707fa89f5a773697b69e82e96 (patch)
tree8d5ff97b90a74b0db70a316151e51f3ed7e8c5d0 /picture.go
parentc0713951c8d95fba3a23da39bfb5c85d858d2338 (diff)
This closes #1405, add new function SetSheetBackgroundFromBytes (#1406)
Co-authored-by: houjianxin.rupert <houjianxin.rupert@bytedance.com>
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/picture.go b/picture.go
index b4629b0..045e2af 100644
--- a/picture.go
+++ b/picture.go
@@ -38,7 +38,8 @@ func parsePictureOptions(opts string) (*pictureOptions, error) {
// AddPicture provides the method to add picture in a sheet by given picture
// format set (such as offset, scale, aspect ratio setting and print settings)
-// and file path. This function is concurrency safe. For example:
+// and file path, supported image types: EMF, EMZ, GIF, JPEG, JPG, PNG, SVG,
+// TIF, TIFF, WMF, and WMZ. This function is concurrency safe. For example:
//
// package main
//
@@ -121,7 +122,9 @@ func (f *File) AddPicture(sheet, cell, picture, format string) error {
// AddPictureFromBytes provides the method to add picture in a sheet by given
// picture format set (such as offset, scale, aspect ratio setting and print
-// settings), file base name, extension name and file bytes. For example:
+// settings), file base name, extension name and file bytes, supported image
+// types: EMF, EMZ, GIF, JPEG, JPG, PNG, SVG, TIF, TIFF, WMF, and WMZ. For
+// example:
//
// package main
//