15 lines
372 B
Go
15 lines
372 B
Go
|
package tomo
|
||
|
|
||
|
import "io"
|
||
|
import "image"
|
||
|
|
||
|
// Texture is a handle that points to a 2D raster image managed by the backend.
|
||
|
type Texture interface {
|
||
|
io.Closer
|
||
|
|
||
|
// Clip returns a smaller section of this texture, pointing to the same
|
||
|
// internal data. Becaue of this, closing a clipped section will close
|
||
|
// the original texture as well.
|
||
|
Clip (image.Rectangle) Texture
|
||
|
}
|