clarify doc
This commit is contained in:
parent
fc8dad2fc9
commit
e48c3dd6cf
|
@ -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())))
|
||||||
|
|
Loading…
Reference in New Issue