@@ -34,14 +34,12 @@ import (
34
34
"github.com/cdillond/gdf"
35
35
)
36
36
37
- // A DecodeFunc reads an image fom the source reader and returns an image.Image and an error.
37
+ // A DecodeFunc reads an image fom the source io.Reader and returns an image.Image and an error.
38
38
// Each of the standard library's image package subdirectories contain functions that can
39
39
// be used here, although alternative implementations are fine too.
40
40
type DecodeFunc func (io.Reader ) (image.Image , error )
41
41
42
42
// A DecodeConfigFunc reads from a source io.Reader and returns an image.Config and an error.
43
- // Each of the standard library's image package subdirectories contain functions that can
44
- // be used here, although alternative implementations are fine too.
45
43
type DecodeConfigFunc func (io.Reader ) (image.Config , error )
46
44
47
45
// A Decoder is a struct that can read gdf.XImages from source bytes. Most image
@@ -77,7 +75,7 @@ type rgba64 interface {
77
75
}
78
76
79
77
// The standard library's image package treats RGBA64 as a sort of lingua franca for images.
80
- // It's not ideal, especially for images with 8-bit depth, but it does the trick. Images with formats
78
+ // It's not ideal, especially for images with 8-bit depth, but it does the trick for images with formats
81
79
// that don't cleanly map to PDF image headers.
82
80
func processImage (img rgba64 , box image.Rectangle , cfg image.Config ) (colors , alpha []byte , hasAlpha bool ) {
83
81
var p , q int
0 commit comments