diff --git a/image.go b/image.go index ceafb4c..844fd53 100644 --- a/image.go +++ b/image.go @@ -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 +}