Commit f5f00be2 authored by Andrew Ekstedt's avatar Andrew Ekstedt Committed by Nigel Tao

image: fix obsolete reference in PalettedImage doc comment

PalettedColorModel was renamed to color.Palette
over three years ago by https://golang.org/cl/5132048.

Change-Id: I0204ade10eabff45620fda2990fed428c65d871e
Reviewed-on: https://go-review.googlesource.com/3305Reviewed-by: 's avatarMinux Ma <minux@golang.org>
Reviewed-by: 's avatarNigel Tao <nigeltao@golang.org>
parent 6ea3adc3
...@@ -46,9 +46,9 @@ type Image interface { ...@@ -46,9 +46,9 @@ type Image interface {
} }
// PalettedImage is an image whose colors may come from a limited palette. // PalettedImage is an image whose colors may come from a limited palette.
// If m is a PalettedImage and m.ColorModel() returns a PalettedColorModel p, // If m is a PalettedImage and m.ColorModel() returns a color.Palette p,
// then m.At(x, y) should be equivalent to p[m.ColorIndexAt(x, y)]. If m's // then m.At(x, y) should be equivalent to p[m.ColorIndexAt(x, y)]. If m's
// color model is not a PalettedColorModel, then ColorIndexAt's behavior is // color model is not a color.Palette, then ColorIndexAt's behavior is
// undefined. // undefined.
type PalettedImage interface { type PalettedImage interface {
// ColorIndexAt returns the palette index of the pixel at (x, y). // ColorIndexAt returns the palette index of the pixel at (x, y).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment