summaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-17 11:08:47 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-17 19:13:42 -0400
commitd83be6df2d8b0e2fef4cb6866cfdb6434bbef5c4 (patch)
treea4677163f2aa762c75988fe402b9aea89d95e0be /Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go
parent82127341cacd4299f9a59e76b5f68d6d7222c45b (diff)
downloadchat-d83be6df2d8b0e2fef4cb6866cfdb6434bbef5c4.tar.gz
chat-d83be6df2d8b0e2fef4cb6866cfdb6434bbef5c4.tar.bz2
chat-d83be6df2d8b0e2fef4cb6866cfdb6434bbef5c4.zip
PLT-173 Added graphics-go and goexif libraries for image manipulation
Diffstat (limited to 'Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go')
-rw-r--r--Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go b/Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go
new file mode 100644
index 000000000..560637d4a
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/graphics-go/graphics/interp/interp.go
@@ -0,0 +1,29 @@
+// Copyright 2012 The Graphics-Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package interp
+
+import (
+ "image"
+ "image/color"
+)
+
+// Interp interpolates an image's color at fractional co-ordinates.
+type Interp interface {
+ // Interp interpolates (x, y).
+ Interp(src image.Image, x, y float64) color.Color
+}
+
+// RGBA is a fast-path interpolation implementation for image.RGBA.
+// It is common for an Interp to also implement RGBA.
+type RGBA interface {
+ // RGBA interpolates (x, y).
+ RGBA(src *image.RGBA, x, y float64) color.RGBA
+}
+
+// Gray is a fast-path interpolation implementation for image.Gray.
+type Gray interface {
+ // Gray interpolates (x, y).
+ Gray(src *image.Gray, x, y float64) color.Gray
+}