Skip to content

Commit

Permalink
feat:Image新增返回draw.Image对象方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyudekuangxiang committed Jul 2, 2021
1 parent a45bea0 commit 63156e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,3 +510,8 @@ func (i *Image) Width() int {
func (i *Image) Height() int {
return i.img.Bounds().Max.Y - i.img.Bounds().Min.Y
}

//返回 draw.image对象
func (i *Image) Image() draw.Image {
return i.img
}

0 comments on commit 63156e7

Please sign in to comment.