Procházet zdrojové kódy

Update README to include AdjustHue function

Adds an example for the AdjustHue function to the README file.
StruffelProductions před 5 roky
rodič
revize
e72d05b90d
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -129,6 +129,16 @@ Original image                     | Saturation = 30
 -----------------------------------|----------------------------------------------|---------------------------------------------
 ![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_saturation_p30.png) | ![dstImage](testdata/out_saturation_m30.png)
 
+### Hue adjustment
+
+```go
+dstImage := imaging.AdjustHue(srcImage, 20)
+```
+
+Original image                     | Hue = 60                                     | Hue = -60
+-----------------------------------|----------------------------------------------|---------------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_hue_p60.png) | ![dstImage](testdata/out_hue_m60.png)
+
 ## FAQ
 
 ### Incorrect image orientation after processing (e.g. an image appears rotated after resizing)