clarify doc

This commit is contained in:
faiface 2017-01-26 23:31:06 +01:00
parent fc8dad2fc9
commit e48c3dd6cf
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ func PictureFromTexture(tex *pixelgl.Texture) *Picture {
} }
// Image returns the content of the Picture as an image.NRGBA. // 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 { func (p *Picture) Image() *image.NRGBA {
bounds := p.Bounds() bounds := p.Bounds()
nrgba := image.NewNRGBA(image.Rect(0, 0, int(bounds.W()), int(bounds.H()))) nrgba := image.NewNRGBA(image.Rect(0, 0, int(bounds.W()), int(bounds.H())))