From 92e14757b0ff756af5e402f6ee6b718d1fd3c567 Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Tue, 15 Sep 2015 21:31:19 +0100 Subject: [PATCH] feat(docs): update API docs --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 53931be..6384d6c 100644 --- a/README.md +++ b/README.md @@ -287,6 +287,18 @@ VIPS_TRACE=1 ./app ### Programmatic API +```go +const HasMagickSupport = int(C.VIPS_MAGICK_SUPPORT) == 1 +``` + +```go +const Version = "0.1.20" +``` + +```go +const WATERMARK_FONT = "sans 10" +``` + #### func ColourspaceIsSupported ```go @@ -396,6 +408,16 @@ const ( ) ``` +#### type GaussianBlur + +```go +type GaussianBlur struct { + Sigma float64 + MinAmpl float64 +} +``` + + #### type Gravity ```go @@ -505,6 +527,13 @@ func (i *Image) Flop() ([]byte, error) ``` Flop the image about the horizontal X axis +#### func (*Image) ForceResize + +```go +func (i *Image) ForceResize(width, height int) ([]byte, error) +``` +Force resize with custom size (aspect ratio won't be maintained) + #### func (*Image) Image ```go @@ -697,6 +726,8 @@ const ( INTERPRETATION_RGB16 Interpretation = C.VIPS_INTERPRETATION_RGB16 INTERPRETATION_GREY16 Interpretation = C.VIPS_INTERPRETATION_GREY16 INTERPRETATION_scRGB Interpretation = C.VIPS_INTERPRETATION_scRGB + INTERPRETATION_LAB Interpretation = C.VIPS_INTERPRETATION_LAB + INTERPRETATION_XYZ Interpretation = C.VIPS_INTERPRETATION_XYZ ) ``` @@ -737,6 +768,7 @@ type Options struct { Type ImageType Interpolator Interpolator Interpretation Interpretation + GaussianBlur GaussianBlur } ```