This commit is contained in:
2023-05-03 01:07:44 -04:00
parent 2ac23185e6
commit 37df313544
27 changed files with 293 additions and 411 deletions

View File

@@ -15,8 +15,8 @@ type Image struct {
// NewImage creates a new image element.
func NewImage (image image.Image) (element *Image) {
element = &Image { buffer: canvas.FromImage(image) }
element.entity = tomo.NewEntity(element)
element = &Image { buffer: artist.FromImage(image) }
element.entity = tomo.GetBackend().NewEntity(element)
bounds := element.buffer.Bounds()
element.entity.SetMinimumSize(bounds.Dx(), bounds.Dy())
return