فهرست منبع

Fix resize comment

disintegration 13 سال پیش
والد
کامیت
0401a6c14f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      imaging.go

+ 1 - 1
imaging.go

@@ -304,7 +304,7 @@ func antialiasFilter(x float64) float64 {
 }
 }
 
 
 // Resize resizes the image to the specified width and height and returns the transformed image.
 // Resize resizes the image to the specified width and height and returns the transformed image.
-// If one of dstW or dstH is 0, the image aspect ratio is preserved.
+// If one of width or height is 0, the image aspect ratio is preserved.
 func Resize(img image.Image, width, height int) draw.Image {
 func Resize(img image.Image, width, height int) draw.Image {
 	// Antialiased resize algorithm. The quality is good, especially at downsizing, 
 	// Antialiased resize algorithm. The quality is good, especially at downsizing, 
 	// but the speed is not too good, some optimisations are needed.
 	// but the speed is not too good, some optimisations are needed.