package software

import "fyne.io/fyne/v2/internal/painter/software"

Index

Types

type Painter

type Painter struct {
}

Painter is a simple software painter that can paint a canvas in memory.

func NewPainter

func NewPainter() *Painter

NewPainter creates a new Painter.

func (*Painter) Paint

func (*Painter) Paint(c fyne.Canvas) image.Image

Paint is the main entry point for a simple software painter. The canvas to be drawn is passed in as a parameter and the return is an image containing the result of rendering.

Source Files

draw.go painter.go

Version
v2.5.4 (latest)
Published
Feb 1, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
1 month ago

Tools for package owners.