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.
22 lines
382 B
22 lines
382 B
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()
|
|
}
|
|
|