On this page
software (package)
import "fyne.io/fyne/v2/driver/software"Usage
func NewCanvas
func NewCanvas() test.WindowlessCanvasNewCanvas creates a new canvas in memory that can render without hardware support.
func NewTransparentCanvas
func NewTransparentCanvas() test.WindowlessCanvasNewTransparentCanvas creates a new canvas in memory that can render without hardware support without a background color.
Since:
2.2func Render
func Render(obj fyne.CanvasObject, t fyne.Theme) image.ImageRender takes a canvas object and renders it to a regular Go image using the provided Theme. The returned image will be set to the object’s minimum size. Use the theme.LightTheme() or theme.DarkTheme() to access the builtin themes.
func RenderCanvas
func RenderCanvas(c fyne.Canvas, t fyne.Theme) image.ImageRenderCanvas takes a canvas and renders it to a regular Go image using the provided Theme. This is the same as setting the application theme and then calling Canvas.Capture().