Przeglądaj źródła

Update README.md

disintegration 13 lat temu
rodzic
commit
16d16758d0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -45,7 +45,7 @@ func main() {
     dst = imaging.Thumbnail(src, 100, 100) // resize and crop the image to make a 100x100 thumbnail
     
     dst = imaging.Crop(src, image.Rect(50, 50, 100, 100)) // cut out a rectangular region from the image
-    dst = imaging.CropCenter(src, 200, 100) // cut out a 200x200 region from the center of the image
+    dst = imaging.CropCenter(src, 200, 100) // cut out a 200x100 px region from the center of the image
     dst = imaging.Paste(dst, src, image.Pt(50, 50)) // paste the src image to the dst image at the given position
     dst = imaging.PasteCenter(dst, src) // paste the src image to the center of the dst image