summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-08-23 11:50:17 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-08-23 11:50:17 -0400
commitf3b514a3763d2f5127e2a36cfdb662c6eb4924ac (patch)
tree4c0ebb4d8dc944bde3a88c90401ef38e70ba360d /def.go
parentc6a09fef08ef94067a714feea492e2f86fc41428 (diff)
Added clipping support adapted from script by Andreas Würmser
Diffstat (limited to 'def.go')
-rw-r--r--def.go5
1 files changed, 5 insertions, 0 deletions
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
}