Proposal Details
I propose to add SubImage method to image.Uniform, like other image types. SubImage takes a rectangle as a bound and returns an image.Image value. The underlying value of the returned value is a Uniform image with bounds, so we would need to add a (hidden) new member representing bounds to Uniform.
This is useful when I want to create a color-filled image and encode this as a PNG image for example.
Proposal Details
I propose to add
SubImagemethod toimage.Uniform, like other image types.SubImagetakes a rectangle as a bound and returns animage.Imagevalue. The underlying value of the returned value is aUniformimage with bounds, so we would need to add a (hidden) new member representing bounds toUniform.This is useful when I want to create a color-filled image and encode this as a PNG image for example.