You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
382 B

2 years ago
package main
import (
"fmt"
"github.com/pwiecz/go-fltk"
)
func main() {
win := fltk.NewWindow(400, 300)
box := fltk.NewBox(fltk.FLAT_BOX, 0, 0, 400, 300, "")
image, err := fltk.NewJpegImageLoad("96c.gif")
if err != nil {
fmt.Printf("An error occured: %s\n", err)
} else {
image.Scale(100, 100, true, true)
box.SetImage(image)
}
win.End()
win.Show()
fltk.Run()
}