From 3d921b9e0ed6dd64b81b477017d1fc79d0e77e9a Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Tue, 13 Aug 2013 12:01:05 -0400 Subject: Documentation updates regarding transparency --- fpdf.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 78be090..d0dc530 100644 --- a/fpdf.go +++ b/fpdf.go @@ -812,14 +812,20 @@ func (f *Fpdf) Arc(x, y, rx, ry, degRotate, degStart, degEnd float64, styleStr s } // Set the alpha blending channel. The blending effect applies to text, -// drawings and images. alpha must be a value between 0.0 (fully transparent) -// to 1.0 (fully opaque). Values outside of this range result in an error. +// drawings and images. +// +// alpha must be a value between 0.0 (fully transparent) to 1.0 (fully opaque). +// Values outside of this range result in an error. +// // blendModeStr must be one of "Normal", "Multiply", "Screen", "Overlay", // "Darken", "Lighten", "ColorDodge", "ColorBurn","HardLight", "SoftLight", // "Difference", "Exclusion", "Hue", "Saturation", "Color", or "Luminosity". An -// empty string is replaced with "Normal". To reset normal rendering after -// applying a blending mode, call this method with alpha set to 1.0 and -// blendModeStr set to "Normal". +// empty string is replaced with "Normal". +// +// To reset normal rendering after applying a blending mode, call this method +// with alpha set to 1.0 and blendModeStr set to "Normal". +// +// See tutorial 12 for an example of this function. func (f *Fpdf) SetAlpha(alpha float64, blendModeStr string) { if f.err != nil { return -- cgit v1.2.1-24-ge1ad