summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
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
}