summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-03-07 19:29:25 -0500
committerKurt <kurt.w.jung@gmail.com>2016-03-07 19:29:25 -0500
commit84296ad0de25bc27403a0566119569152faa6d9f (patch)
tree077e519afcaa594e2207bb9051a1b3b5ec9783b4 /def.go
parent784dacec868d6befa2cfd68db03306de24095654 (diff)
Satisfy golint with small changes to documentation. Remove diagnostic print statement to allow tests to succeed.
Diffstat (limited to 'def.go')
-rw-r--r--def.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/def.go b/def.go
index d3eaca0..f5eed3a 100644
--- a/def.go
+++ b/def.go
@@ -111,11 +111,10 @@ func (info *ImageInfoType) Height() float64 {
return info.h / (info.scale * info.dpi / 72)
}
-// Dpi sets the dots per inch for an image
-// PNG images MAY have their dpi set automatically, if the image
-// specifies it. DPI information is not currently available
-// automatically for JPG and GIF images, so if it's important to
-// you, you can set it here. It defaults to 72 dpi.
+// SetDpi sets the dots per inch for an image. PNG images MAY have their dpi
+// set automatically, if the image specifies it. DPI information is not
+// currently available automatically for JPG and GIF images, so if it's
+// important to you, you can set it here. It defaults to 72 dpi.
func (info *ImageInfoType) SetDpi(dpi float64) {
info.dpi = dpi
}