Commit Graph

71 Commits

Author SHA1 Message Date
Michael Fogleman
fa28a6e1e3
Merge pull request #65 from kortschak/average
Use fewer ops to calculate mid-point
2019-02-20 10:22:23 -05:00
Dan Kortschak
f23d82b106 Use fewer ops to calculate mid-point 2019-02-20 17:08:29 +10:30
Jamie Crisman
ccde3a8923 Allows the ability to get the current point in the context 2019-02-07 14:39:14 -06:00
Michael Fogleman
77d18b88fe
Merge pull request #52 from rekby/multiline-measure
Add MeasureMultilineString method to Context.
2019-01-14 11:16:02 -05:00
Michael Fogleman
cdabe43353 Add InvertMask and an example 2019-01-14 11:04:49 -05:00
Timofey Kulin
16a00d1152 Add MeasureMultilineString method to Context.
Fix #https://github.com/fogleman/gg/issues/49
2018-10-23 09:27:48 +03:00
Michael Fogleman
eb261f0bd1 Perf improvement when nil clip and solid color (usual case) 2018-08-16 22:49:05 -04:00
Michael Fogleman
9a34078211 Fix #42. Performance improvement by reusing Rasterizer 2018-08-16 22:18:45 -04:00
Michael Fogleman
c97f757e6f better DrawEllipticalArc behavior when dc.hasCurrent is true 2018-03-08 13:42:55 -05:00
Michael Fogleman
1b3894b028 Add SetMask and AsMask and an example using them 2018-02-11 23:15:32 -05:00
Alexander Kahl
00ed7b79c0 Add a context fontHeight getter 2017-10-31 16:09:26 +01:00
Michael Fogleman
7fb6ce3c57 Merge pull request #16 from wsw0108/rotated-image-text
Draw image/text with current transformation appied
2017-05-03 21:06:54 -04:00
wsw
2c35caba58 apply current matrix when draw text 2017-01-08 16:23:33 +08:00
Michael Fogleman
6166aa3c1a set fontHeight in SetFontFace 2016-12-20 19:30:13 -05:00
Michael Fogleman
bc0c0e9e67 greatly improve clipping performance 2016-12-14 17:06:16 -05:00
Michael Fogleman
65947eb047 add SetPixel and DrawPoint 2016-12-14 14:43:30 -05:00
Michael Fogleman
5917fd97e8 fix #8 by exporting utility function LoadFontFace 2016-12-14 14:26:04 -05:00
wsw
b13517ff6f Merge branch 'master' into draw-image-rotated 2016-12-09 15:52:52 +08:00
wsw
f685e7c163 default fill/stoke (black on white) 2016-12-08 13:11:16 +08:00
wsw
f06d3564a1 apply current matrix when draw image 2016-12-08 11:16:19 +08:00
wsw
db5b86472e Pattern, solid(color) and surface(image) 2016-11-20 20:31:05 +08:00
Michael Fogleman
ae49c2a7ae bug fixes 2016-09-20 22:21:59 -04:00
Michael Fogleman
4d5a250fb8 DrawString bug fix 2016-04-22 16:59:50 -04:00
flopp
646568c788 LoadFontface returns an error 2016-03-05 20:46:55 +01:00
Michael Fogleman
021242611d clipping simplification 2016-02-26 08:39:32 -05:00
Michael Fogleman
64d88fe46a implement clipping 2016-02-25 14:16:48 -05:00
Michael Fogleman
15bab65913 DrawRegularPolygon 2016-02-25 12:46:59 -05:00
Michael Fogleman
60b91a20e1 workaround freetype/raster issues 2016-02-24 21:45:09 -05:00
Michael Fogleman
e48cc03e84 word wrap implemented 2016-02-24 21:26:51 -05:00
Michael Fogleman
315dff9066 word wrap in progress 2016-02-24 17:22:21 -05:00
Emmanuel Odeke
93f92929f2 encodePNG implemented
Fixes #2.

Allows passing in an io.Writer to save a PNG.
2016-02-24 13:08:20 -08:00
Michael Fogleman
25b475c827 Update context.go 2016-02-23 16:44:53 -05:00
Michael Fogleman
e5ff69e151 add doc comments to context functions 2016-02-23 16:30:53 -05:00
Michael Fogleman
2a0857f791 loadFontFace errors 2016-02-22 22:36:34 -05:00
Michael Fogleman
b224ca0761 fi -> fix, fp -> fixp 2016-02-22 22:33:22 -05:00
Michael Fogleman
5af67d1f6f Add support for dashed strokes 2016-02-22 21:00:39 -05:00
Michael Fogleman
a4bc9dc362 stack should not affect current, hasCurrent 2016-02-21 22:31:21 -05:00
Michael Fogleman
68ecba1329 NewSubPath 2016-02-21 22:22:17 -05:00
Michael Fogleman
a4e5cdbeb8 fix some curve issues 2016-02-21 16:34:28 -05:00
Michael Fogleman
104a343597 *About functions in Context only 2016-02-21 15:54:54 -05:00
Michael Fogleman
5cc58d1aa5 track current point; emulate cubic beziers 2016-02-20 23:11:34 -05:00
Michael Fogleman
a4a5e21ecd bug fix 2016-02-20 18:12:34 -05:00
Michael Fogleman
922e8e1f9e bug fix 2016-02-20 18:06:19 -05:00
Michael Fogleman
a46d144fed support alpha in SetHexColor 2016-02-20 15:43:08 -05:00
Michael Fogleman
806ad20891 bug fix 2016-02-20 15:27:48 -05:00
Michael Fogleman
e6644b7b24 remove unneeded code 2016-02-20 15:14:24 -05:00
Michael Fogleman
8014fc54f3 fix open fill paths 2016-02-20 15:10:16 -05:00
Michael Fogleman
b77c5f2881 ShearAbout 2016-02-20 14:53:33 -05:00
Michael Fogleman
e08199f06f ScaleAbout 2016-02-20 14:45:17 -05:00
Michael Fogleman
8ed9c9d862 anchored functions 2016-02-19 21:35:56 -05:00