proposal: image: add (*Uniform).SubImage
#71463
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
Proposal Details
I propose to add
SubImage
method toimage.Uniform
, like other image types.SubImage
takes a rectangle as a bound and returns animage.Image
value. The underlying value of the returned value is aUniform
image 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.
The text was updated successfully, but these errors were encountered: