Commit Graph

174 Commits

Author SHA1 Message Date
milarin d9a531518d migrated module to git.milar.in 2023-01-22 12:06:29 +01:00
Timon Ringwald cc30f39e11 fixed drawclipping when drawing text on subimages 2022-04-22 11:57:30 +02:00
Timon Ringwald 69923d9438 fixed draw clipping on subimages 2022-04-22 11:49:17 +02:00
Timon Ringwald 2755d666d6 moduling 2022-04-22 11:48:47 +02:00
Michael Fogleman 8febc0f526 Fix rounding when converting to fixed precision 2021-09-28 10:35:35 -04:00
Michael Fogleman af4cd58078
Merge pull request #124 from mazznoer/conic-gradient
Add conic gradient
2021-01-31 12:28:31 -05:00
Nor Khasyatillah c26555283c Add conic gradient 2021-01-29 19:00:22 +07:00
Michael Fogleman ad4d1eafac
Update README.md 2020-05-14 21:10:29 -04:00
Michael Fogleman 8d127f461d
Merge pull request #100 from ajnirp/patch-1
Update documentation link
2020-05-14 21:09:58 -04:00
Rohan Prinja b89ba07b94
Update documentation link
When visiting the godoc link, a banner at the top informs me that "pkg.go.dev is a new destination for Go discovery and docs". While it doesn't look like godoc is going away, I figured it would be nice to link to both sites.
2020-05-14 17:15:05 -07:00
Michael Fogleman 4dc34561c6
Merge pull request #83 from Xeoncross/master
Add support for JPEG encoding
2019-08-26 15:13:58 -04:00
xeoncross 068da56c91 Added support for JPEG encoding 2019-08-26 14:04:06 -05:00
Michael Fogleman f194ddec6f
Merge pull request #77 from leexingliang/master
modify comment
2019-06-12 10:10:55 -04:00
lixingliang 6897f9a1a0 modify comment 2019-06-12 11:43:36 +08:00
Michael Fogleman 72436a171b fix test for 1.12+ 2019-04-16 21:30:52 -04:00
Michael Fogleman 5899172fb0
Merge pull request #70 from bevand10/master
Add SaveJPG method
2019-04-16 21:28:22 -04:00
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