Bounds

Return the Bounds of the image.

Parameters

None

Return Values

image.Rectangle

Examples

package main

import (
    "fmt"
    "github.com/fishtailstudio/imgo"
)

func main() {
    img := imgo.Load("gopher.png")
    fmt.Println(img.Bounds())
}

Output:

(0,0)-(189,256)

Last updated