From f3b514a3763d2f5127e2a36cfdb662c6eb4924ac Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Fri, 23 Aug 2013 11:50:17 -0400 Subject: =?UTF-8?q?Added=20clipping=20support=20adapted=20from=20script=20?= =?UTF-8?q?by=20Andreas=20W=C3=BCrmser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- def.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'def.go') diff --git a/def.go b/def.go index 146a705..7272f73 100644 --- a/def.go +++ b/def.go @@ -40,6 +40,10 @@ type sizeType struct { wd, ht float64 } +type pointType struct { + x, y float64 +} + type imageInfoType struct { data []byte smask []byte @@ -137,6 +141,7 @@ type Fpdf struct { blendList []blendModeType // slice[idx] of alpha transparency modes, 1-based blendMap map[string]int // map into blendList gradientList []gradientType // slice[idx] of gradient records + clipActive bool // clippping operation is underway err error // Set if error occurs during life cycle of instance } -- cgit v1.2.1-24-ge1ad