Modify docs

This commit is contained in:
Hajime Hoshi 2014-12-23 04:10:28 +09:00
parent 0fe8387a5a
commit 3e576c97f3
2 changed files with 3 additions and 2 deletions

View File

@ -31,12 +31,12 @@ type ImagePart struct {
}
// DrawWholeImage draws the whole image.
func DrawWholeImage(r *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
func DrawWholeImage(target *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
w, h := image.Size()
parts := []ImagePart{
{Rect{0, 0, float64(w), float64(h)}, Rect{0, 0, float64(w), float64(h)}},
}
return r.DrawImage(image, parts, geo, color)
return target.DrawImage(image, parts, geo, color)
}
// Filter represents the type of filter to be used when an image is maginified or minified.

View File

@ -98,6 +98,7 @@ type syncer interface {
// Image represents an image.
// The pixel format is alpha-premultiplied.
// Image implements image.Image.
type Image struct {
syncer syncer
inner *innerImage