mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
parent
4fcfdb39d4
commit
d94a89f37b
4
image.go
4
image.go
@ -601,7 +601,9 @@ func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawR
|
|||||||
//
|
//
|
||||||
// If the image is disposed, SubImage returns nil.
|
// If the image is disposed, SubImage returns nil.
|
||||||
//
|
//
|
||||||
// In the current Ebiten implementation, SubImage is available only as a rendering source.
|
// A sub-image returned by SubImage can be used as a rendering source and a rendering destination.
|
||||||
|
// If a sub-image is used as a rendering source, the image is used as if it is a small image.
|
||||||
|
// If a sub-image is used as a rendering destination, the region being rendered is clipped.
|
||||||
func (i *Image) SubImage(r image.Rectangle) image.Image {
|
func (i *Image) SubImage(r image.Rectangle) image.Image {
|
||||||
i.copyCheck()
|
i.copyCheck()
|
||||||
if i.isDisposed() {
|
if i.isDisposed() {
|
||||||
|
Loading…
Reference in New Issue
Block a user