Guest User

Untitled

a guest
Jan 16th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. func Decode(r io.Reader) (Image, string, error)
  2.  
  3. type Image interface {
  4. // ColorModel returns the Image's color model.
  5. ColorModel() color.Model
  6. // Bounds returns the domain for which At can return non-zero color.
  7. // The bounds do not necessarily contain the point (0, 0).
  8. Bounds() Rectangle
  9. // At returns the color of the pixel at (x, y).
  10. // At(Bounds().Min.X, Bounds().Min.Y) returns the upper-left pixel of the grid.
  11. // At(Bounds().Max.X-1, Bounds().Max.Y-1) returns the lower-right one.
  12. At(x, y int) color.Color
  13. }
Add Comment
Please, Sign In to add comment