graphics: Add comments

This commit is contained in:
Hajime Hoshi 2017-12-16 18:35:25 +09:00
parent 6eb148b9a1
commit 94d54b7d2c

View File

@ -227,6 +227,8 @@ func (i *Image) ReplacePixels(p []uint8) error {
type DrawImageOptions struct {
// SourceRect is the region of the source image to draw.
// If SourceRect is nil, whole image is used.
//
// It is assured that texels out of the SourceRect are never used.
SourceRect *image.Rectangle
// GeoM is a geometry matrix to draw.