Upgrade to v2.5
Fyne API v2.5
app
canvas
package canvas
Circle
Image
ImageFill
ImageScale
Line
LinearGradient
RadialGradient
Raster
Rectangle
Text
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "canvas.ImageScale"
canvas.ImageScale
import "fyne.io/fyne/v2/canvas"
Usage
type ImageScale
type ImageScale int32
ImageScale defines the different scaling filters used to scaling images
const (
// ImageScaleSmooth will scale the image using ApproxBiLinear filter (or GL equivalent)
ImageScaleSmooth ImageScale = iota
// ImageScalePixels will scale the image using NearestNeighbor filter (or GL equivalent)
ImageScalePixels
// ImageScaleFastest will scale the image using hardware GPU if available
//
// Since: 2.0
ImageScaleFastest
)