graphics: Fix comments about MaxImageSize

This commit is contained in:
Hajime Hoshi 2018-03-12 02:01:30 +09:00
parent 568b3184b0
commit a335b0c5a3

View File

@ -353,7 +353,7 @@ type DrawImageOptions struct {
// NewImage returns an empty image. // NewImage returns an empty image.
// //
// If width or height is less than 1 or more than MaxImageSize, NewImage panics. // If width or height is less than 1 or more than device-dependent maximum size, NewImage panics.
// //
// filter argument is just for backward compatibility. // filter argument is just for backward compatibility.
// If you are not sure, specify FilterDefault. // If you are not sure, specify FilterDefault.
@ -393,7 +393,7 @@ func newImageWithoutInit(width, height int) *Image {
// //
// Note that volatile images are internal only and will never be source of drawing. // Note that volatile images are internal only and will never be source of drawing.
// //
// If width or height is less than 1 or more than MaxImageSize, newVolatileImage panics. // If width or height is less than 1 or more than device-dependent maximum size, newVolatileImage panics.
// //
// Error returned by newVolatileImage is always nil as of 1.5.0-alpha. // Error returned by newVolatileImage is always nil as of 1.5.0-alpha.
func newVolatileImage(width, height int, filter Filter) *Image { func newVolatileImage(width, height int, filter Filter) *Image {
@ -408,7 +408,7 @@ func newVolatileImage(width, height int, filter Filter) *Image {
// NewImageFromImage creates a new image with the given image (source). // NewImageFromImage creates a new image with the given image (source).
// //
// If source's width or height is less than 1 or more than MaxImageSize, NewImageFromImage panics. // If source's width or height is less than 1 or more than device-dependent maximum size, NewImageFromImage panics.
// //
// filter argument is just for backward compatibility. // filter argument is just for backward compatibility.
// If you are not sure, specify FilterDefault. // If you are not sure, specify FilterDefault.