diff options
author | Joe Westcott <joewestcott@users.noreply.github.com> | 2019-08-30 14:31:30 +0100 |
---|---|---|
committer | Joe Westcott <joewestcott@users.noreply.github.com> | 2019-08-30 14:31:30 +0100 |
commit | e27b17d1defd471e6f0c0c422d2fa8ce9b9c3bb6 (patch) | |
tree | 45373249c91007edfad382b3f3f7eaf6be2a4f55 /def.go | |
parent | ced1e15bca902f15732b6380aaa4bdc419d87eac (diff) |
comments for ImageInfoType
Diffstat (limited to 'def.go')
-rw-r--r-- | def.go | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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) { |