Skip to content

Commit

Permalink
Missed another comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 30, 2020
1 parent 8f5ebcd commit f7e1114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions canvas/raster.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func (r *Raster) Alpha() float64 {
return 1.0 - r.Translucency
}

// Resize on a raster image causes the new size to be set and then calls Refresh.
// This causes the underlying data to be recalculated and a new output to be drawn.
func (r *Raster) Resize(s fyne.Size) {
r.baseObject.Resize(s)
Refresh(r)
Expand Down

0 comments on commit f7e1114

Please sign in to comment.