diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-05-10 13:17:02 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-05-10 13:17:02 -0400 |
| commit | 15c9618700dc681e6b94e83a1aaeea6cbcd0c2c2 (patch) | |
| tree | bd92f064527f8897c41e294df10efaaaef5f50fd /gui/widget/image.go | |
| parent | 97a7a7cd2afa18b73f5982ecb3ec08c0392b6d1e (diff) | |
| download | volute-15c9618700dc681e6b94e83a1aaeea6cbcd0c2c2.zip | |
separate label widget and style constants
Diffstat (limited to 'gui/widget/image.go')
| -rw-r--r-- | gui/widget/image.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/widget/image.go b/gui/widget/image.go index c5712c4..daf76aa 100644 --- a/gui/widget/image.go +++ b/gui/widget/image.go @@ -3,6 +3,7 @@ package widget import ( "sync" + xdraw "golang.org/x/image/draw" "image" "image/draw" @@ -10,6 +11,8 @@ import ( "volute/gui/win" ) +var interpolator = xdraw.ApproxBiLinear + func Image(imChan <-chan image.Image, r image.Rectangle, env gui.Env, wg *sync.WaitGroup) { defer wg.Done() defer close(env.Draw()) |