mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
Modify docs
This commit is contained in:
parent
604c0d095f
commit
a0cff8961b
6
image.go
6
image.go
@ -131,7 +131,11 @@ func (i *Image) Fill(clr color.Color) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawImage draws the given image on the receiver (i).
|
// DrawImage draws the given image on the receiver image.
|
||||||
|
// This method accepts the parts srcs of the given image at the parts of the destination dsts.
|
||||||
|
// After determining parts to draw, this applies the geometry matrix geo and the color matrix color.
|
||||||
|
//
|
||||||
|
// If you want to draw a whole image simply, use DrawWholeImage.
|
||||||
func (i *Image) DrawImage(dsts []image.Rectangle, image *Image, srcs []image.Rectangle, geo GeometryMatrix, color ColorMatrix) (err error) {
|
func (i *Image) DrawImage(dsts []image.Rectangle, image *Image, srcs []image.Rectangle, geo GeometryMatrix, color ColorMatrix) (err error) {
|
||||||
return i.drawImage(dsts, image.inner, srcs, geo, color)
|
return i.drawImage(dsts, image.inner, srcs, geo, color)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user