Skip to content
Snippets Groups Projects
Commit e48c3dd6 authored by faiface's avatar faiface
Browse files

clarify doc

parent fc8dad2f
No related merge requests found
......@@ -57,6 +57,8 @@ func PictureFromTexture(tex *pixelgl.Texture) *Picture {
}
// Image returns the content of the Picture as an image.NRGBA.
//
// Note, that this operation can be rather expensive.
func (p *Picture) Image() *image.NRGBA {
bounds := p.Bounds()
nrgba := image.NewNRGBA(image.Rect(0, 0, int(bounds.W()), int(bounds.H())))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment