瀏覽代碼

Update README.md

disintegration 13 年之前
父節點
當前提交
66c3e123ba
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      README.md

+ 2 - 3
README.md

@@ -31,13 +31,12 @@ package main
 import (
     "github.com/disintegration/imaging"
     "image"
-    "image/color"
-    "image/draw"   
+    "image/color"  
 )
 
 func main() {
     src, _ := imaging.Open("1.png") // load an image from file (returns image.Image interface)
-    var dst draw.Image
+    var dst image.Image
     
     dst = imaging.New(800, 600, color.NRGBA(255, 0, 0, 255)) // create a new 800x600px image filled with red color
     dst = imaging.Clone(src) // make a copy of the image