Граф коммитов

242 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz 3248d2d319
Updated the unit tests to net47 2018-12-25 12:09:49 +02:00
Matthew Leibowitz edba9a6607
Fixed and enhanced the SKColorSpace API 2018-12-18 08:44:49 +02:00
Matthew Leibowitz 22032a69ab
Support the case of measuring empty strings. Fixes #734
- previous logic: did not check for nulls, the update did
 - new logic: still check for nulls, but now only if we have indicated that there _should_ be text (there is a length)
 - added overloads for text pointers that accept an int as opposed to just an IntPtr
2018-12-17 23:50:29 +02:00
Matthew Leibowitz 121ab0496c
Fixed the matrix interop 2018-12-02 03:54:36 +02:00
Matthew Leibowitz 0cf1c6d293
Fixing the bitmap resize/scale methods
- consistency
    - `Resize` is for methods that create new objects
    - `ScalePixels` is for mthods that COPY pixels INTO a provided object
 - uniformity
    - all 3 imageing types have pixel scaling capabilities
 - improved obsolete desriptions
 - added new methods instead of just obsoleting
 - added more tests
2018-11-29 19:26:57 +02:00
Matthew Leibowitz 6c7f018724
More improvements for image decoding:
- SKCodec can now decode more imputs (bytes, streams)
 - SKImage no longer unnecessarily copies image data all over when decoding
 - SKBitmap no longer copies data unnecessarily
2018-11-27 23:46:12 +02:00
Matthew Leibowitz 51adc3c1b2
Non-ASCII Paths Fixes
- A bunch of changes to no longer wrpa a managed stream for non-ASCII paths on Windows
 - All paths are now converted to a UTF-8 path before been shipped over to native code
 - Fixes #697
2018-11-25 01:57:16 +02:00
Matthew Leibowitz d814a432ee
Handle the case where the file does not exist
- return null instead of just crashing in native code
 - fixes #618
 - fixes #677
2018-11-23 20:36:46 +02:00
Matthew Leibowitz a2f2d35609
Enhanced the PDF/XPS implementation and features 2018-11-17 00:55:17 +02:00
Matthew Leibowitz 98948aedc0
Make sure not to lock the files 2018-11-16 19:33:38 +02:00
Matthew Leibowitz 5268ffbded
The text bounds have a small padding, but the text path does not. 2018-11-16 04:54:17 +02:00
Matthew Leibowitz 6fb447c202
Removed the use of the debug SaveBitmap 2018-11-15 06:28:27 +02:00
Matthew Leibowitz 6a6e94af40
Add bindings for SKTextBlob, SKTextBlobBuilder and other text APIs 2018-11-15 04:27:17 +02:00
Matthew Leibowitz 53fbd5509f
Making the C layer dumber
- no "clever" mapping from types, just cast
 - removing variables, just use a direct call
 - sk_imageinfo_t still requires mapping because of the sk_sp<T> must be mapped to a T*
 - sksurfaceprops_t is now a class
2018-11-10 22:39:32 +02:00
Matthew Leibowitz 80ba9ffa14
Number of glyphs differs from chars in the string 2018-11-09 19:29:52 +02:00
Matthew Leibowitz fc7c60f559
The size of the glyph array may differ from the number of characters in the .NET string 2018-11-09 17:37:26 +02:00
Matthew Leibowitz b30b0ab56f
Some improvements to the code
- use "real" types instead of just IntPtr in the interop layer to make things easier to read
 - using some new C# features
 - corrected the use of the "fixed" keyword to no longer require arrays to have elements
2018-11-09 01:26:10 +02:00
Matthew Leibowitz 1f929695f6
Added a "trim" path effect 2018-11-06 19:37:10 +02:00
Matthew Leibowitz 66bd030f70
Added some utility methods to SKPath. Closes #669 2018-11-02 04:00:41 +02:00
Matthew Leibowitz 8f9975a722
Added a few overloads to SKImage
- FromEncodedData now can decode streams, buffers and files
 - FromPixelCopy now can copy from streams and buffers
2018-11-02 01:52:08 +02:00
Matthew Leibowitz 83e0941cb0
Added the rest of the sweep gradient shader arguments
- Closes #656
2018-10-29 22:19:44 +02:00
Matthew Leibowitz efc709437f
SKPixelSerializer is actually removed, but we go obsolete 2018-10-12 03:22:53 +02:00
Matthew Leibowitz 39cb90b494
Updated the .NET Core testing framework 2018-10-09 12:31:44 +02:00
Matthew Leibowitz 102d6477f6
Renamed the extension method to be both more specific and more accurate 2018-10-04 02:49:03 +02:00
Matthew Leibowitz 66b8b479db
Made things nicer still 2018-10-03 02:16:51 +02:00
Matthew Leibowitz 929945ef40
Improved the API a bit 2018-10-03 00:15:49 +02:00
Matthew Leibowitz 35d3f00f55
Exposed SKTypeface.CreateDefault() and SKTypeface.Default to C# 2018-09-28 20:57:43 +02:00
Matthew Leibowitz a27cbb1eae
Improve the Linux CI (#635)
* Prepare the bits to build the linux platforms
* Adding just the required native packages
* Update mdoc and add the --quiet flag to reduce output noise
* Moved the linux native assets into a separate nuget
* Updated the UWP signing key
* Remove the old index8 members
2018-09-17 04:48:12 +02:00
Matthew Leibowitz 0fec7c7e74
Merge pull request #631 from mono/dev/update-m68
Update to m68
2018-09-14 13:42:40 +02:00
Matthew Leibowitz 3545960a6c
Updated the versions to m68 2018-09-07 02:57:12 +02:00
Matthew Leibowitz a6fc98aaf9
Adding a net45 target to SkiaSharp.HarfBuzz. Fixes #604
- netstandard1.3 does not support net45
2018-08-15 22:15:30 +02:00
Matthew Leibowitz f84817de3e
This should not be here 2018-07-24 01:17:34 +02:00
Matthew Leibowitz d9e3ac2c8b
Remove the extra backslash after %(RecursiveDir)
- it is technically incorrect as the recursive directory already has the trailing slash
 - it breaks on mac as vs for mac is more strict/sensitive
2018-07-23 23:43:28 +02:00
Matthew Leibowitz 30c119ae9e
marking everything with color tables as obsolete
- this is now a private api
 - may be removed at any time
2018-07-21 22:51:30 +02:00
Matthew Leibowitz 04883d0fb6
Added bindings for SkOverdrawCanvas
- also set flags to reduce file sizes
2018-07-21 22:35:05 +02:00
Matthew Leibowitz 462d3a126d
Improve the tests to properly load platform values 2018-07-21 03:18:19 +02:00
Matthew Leibowitz bc85b16f22
Linux does not support matching typefaces from streams
- see https://bugs.chromium.org/p/skia/issues/detail?id=8160
2018-07-20 11:22:33 +02:00
Matthew Leibowitz 4cc390130f
dotnet-xunit is not yet stable. 2018-07-18 03:59:27 +02:00
Matthew Leibowitz b7efe03d58
Update all the versions to the latest of everything 2018-07-18 02:52:19 +02:00
Matthew Leibowitz e576dde971
macOS does not support matching typefaces. 2018-07-17 21:00:31 +02:00
Matthew Leibowitz b7eed6a312
make sure the encoding is correct 2018-07-12 16:59:13 +02:00
Matthew Leibowitz 5486cefa55
Added back some members that we can still support 2018-07-12 16:58:02 +02:00
Matthew Leibowitz 5acd4d08f6
Updating xunit 2018-07-12 13:32:20 +02:00
Matthew Leibowitz 4d2b85f3c1
Updated the tests to match the new API 2018-07-12 13:32:02 +02:00
Matthew Leibowitz 7180844994
Set the version to v1.60.2 for the upcoming release 2018-05-29 23:35:10 +02:00
Matthew Leibowitz ff838ceccb
Added bindings for SKRoundRect 2018-05-29 03:43:29 +02:00
Matthew Leibowitz 7a4b1e6054
Merge pull request #529 from mono/dev/nway-canvas
Bindings for SKNWayCanvas and SKNoDrawCanvas
2018-05-25 21:42:18 +02:00
Matthew Leibowitz a87713b422
Add more encoding options to SKPixmap 2018-05-25 01:42:59 +02:00
Matthew Leibowitz b0ddea825a
Revert "Add more encoding options to SKPixmap"
This reverts commit 1cd83d58e5.
2018-05-25 01:42:19 +02:00
Matthew Leibowitz 1cd83d58e5
Add more encoding options to SKPixmap 2018-05-25 01:41:33 +02:00