summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-09-07 09:17:24 -0400
committerKurt <kurt.w.jung@gmail.com>2019-09-07 09:17:24 -0400
commitfac5b8ac092fabeb667ca3e16212b5cc2fc0c4f1 (patch)
tree08ec04cb4469d1685189545b70ee3749ba420e76 /def.go
parentced1e15bca902f15732b6380aaa4bdc419d87eac (diff)
parent29a8ebcc82176b98972f23e915f2afdf8a192bac (diff)
Merge branch 'joewestcott-template-init'
Diffstat (limited to 'def.go')
-rw-r--r--def.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/def.go b/def.go
index 7fddc82..47e5135 100644
--- a/def.go
+++ b/def.go
@@ -165,20 +165,20 @@ func (p PointType) XY() (float64, float64) {
// Changes to this structure should be reflected in its GobEncode and GobDecode
// methods.
type ImageInfoType struct {
- data []byte
- smask []byte
- n int
- w float64
- h float64
- cs string
- pal []byte
- bpc int
- f string
- dp string
- trns []int
- scale float64 // document scaling factor
- dpi float64
- i string
+ data []byte // Raw image data
+ smask []byte // Soft Mask, an 8bit per-pixel transparency mask
+ n int // Image object number
+ w float64 // Width
+ h float64 // Height
+ cs string // Color space
+ pal []byte // Image color palette
+ bpc int // Bits Per Component
+ f string // Image filter
+ dp string // DecodeParms
+ trns []int // Transparency mask
+ scale float64 // Document scale factor
+ dpi float64 // Dots-per-inch found from image file (png only)
+ i string // SHA-1 checksum of the above values.
}
func generateImageID(info *ImageInfoType) (string, error) {