Commit Graph

158 Commits

Author SHA1 Message Date
Dave Bevan
1236b6346f Add SaveJPG method 2019-04-12 18:25:28 +01:00
Michael Fogleman
0403632d5b New test image. 2019-02-20 17:12:49 -05:00
Michael Fogleman
64338842c5 New test image. 2019-02-20 17:12:06 -05:00
Michael Fogleman
3bcf9e0320 Add SetDashOffset. Close #64. 2019-02-20 16:47:39 -05:00
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
Michael Fogleman
0e8122236d
Merge pull request #61 from JamieCrisman/get-current
Allows the ability to get the current point in the context
2019-02-07 15:47:22 -05:00
Jamie Crisman
ccde3a8923 Allows the ability to get the current point in the context 2019-02-07 14:39:14 -06:00
Michael Fogleman
3795562800
Merge pull request #60 from emaele/jpeg-open&save
Load and save jpeg images
2019-01-19 16:22:23 -05:00
Emanuele Rocco Petrone
74a8429cb8 load and save jpeg images 2019-01-19 18:47:38 +01:00
Michael Fogleman
9db508d34a
Update README.md 2019-01-14 11:18:59 -05: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
0e0ff3ade7 Add gofont.go example, close #45 2018-08-22 21:57:45 -04:00
Michael Fogleman
7cc16ce8b2 Add -save test flag 2018-08-17 11:14:38 -04:00
Michael Fogleman
eb261f0bd1 Perf improvement when nil clip and solid color (usual case) 2018-08-16 22:49:05 -04:00
Michael Fogleman
a4f287e211 Fix #23 via doc on gg.LoadFontFace function. 2018-08-16 22:22:39 -04:00
Michael Fogleman
9a34078211 Fix #42. Performance improvement by reusing Rasterizer 2018-08-16 22:18:45 -04:00
Michael Fogleman
6bee5281ff Add BenchmarkCircles for simple benchmarking 2018-08-16 22:18:08 -04:00
Michael Fogleman
b2d255c6f2 Add some tests! (mostly regression tests) 2018-08-16 22:08:53 -04:00
Michael Fogleman
a9ff18eccd
Merge pull request #38 from tschaub/subimage
Start copying at bounds min instead of zero point
2018-03-16 10:14:17 -04:00
Tim Schaub
ca366ba15b Start copying at bounds min instead of zero point 2018-03-15 21:28:47 -06:00
Michael Fogleman
c97f757e6f better DrawEllipticalArc behavior when dc.hasCurrent is true 2018-03-08 13:42:55 -05:00
Michael Fogleman
da3d0863b9 add crisp lines example 2018-02-23 09:52:38 -05:00
Michael Fogleman
363d282ef3
Merge pull request #28 from derekschaab/issue-25
Return alpha-premultiplied color in gradient interpolation
2018-02-12 10:03:43 -05:00
Michael Fogleman
1b3894b028 Add SetMask and AsMask and an example using them 2018-02-11 23:15:32 -05:00
Michael Fogleman
c828b09e4a
Merge pull request #31 from magneticcoffee/get-dc-fontheight
Add a context fontHeight getter
2018-02-08 12:06:39 -05:00
Alexander Kahl
00ed7b79c0 Add a context fontHeight getter 2017-10-31 16:09:26 +01:00
Derek Schaab
ffbeb6b231 Return alpha-premultiplied color in gradient interpolation
Fixes #25.
2017-09-30 21:34:46 -05:00
Michael Fogleman
e611489b86 concat example 2017-07-28 18:55:21 -04:00
Michael Fogleman
ee8994ff90 Update README.md 2017-05-03 21:14:43 -04:00
Michael Fogleman
30f3b1d4ae Update README.md 2017-05-03 21:09:02 -04: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
Michael Fogleman
0a834b0873 unicode table 2017-04-29 14:19:37 -04:00
Michael Fogleman
5e707d618f Update README.md 2017-04-14 13:57:42 -04:00
wsw
2c35caba58 apply current matrix when draw text 2017-01-08 16:23:33 +08:00
wsw
5e5aa69079 update example 'rotated-image' 2017-01-08 16:18:14 +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
62c697d628 update readme 2016-12-14 14:51:04 -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
Michael Fogleman
19103e0c61 Merge pull request #14 from wsw0108/default-fill-stroke-style
default fill/stroke (black on white)
2016-12-08 10:19:18 -05:00
wsw
3be68eb22e Merge branch 'master' into draw-image-rotated 2016-12-08 13:24:25 +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
Michael Fogleman
bb1054e936 Merge pull request #12 from wsw0108/pattern-gradient
Implement pattern and gradient
2016-12-06 19:30:53 -05:00
wsw
d60a19b37a int/float64 things 2016-11-22 12:56:58 +08:00