Julien Lebosquain
8215194f32
Reset cached transform on PopEffect ( #20474 )
2 months ago
Tom Edwards
f1703dd784
Add `DrawingImage.Viewbox` ( #18913 )
* Added DrawingImage.Frame: a rectangular region of `Drawing`, in device independent pixels, to display when rendering the image
* Renamed Frame to Viewbox
Added test
3 months ago
snowflysky
c7bc7e92a5
Enable antialiasing based on EdgeMode in DrawBitmap ( #20116 )
* Enable antialiasing based on EdgeMode in DrawBitmap
* Update expected image for ImageBrush Tile UniformToFill test
* Add tests for rotated image with EdgeMode options
* Add expected images for Direct2D1 image rotation tests
* Revert "Add expected images for Direct2D1 image rotation tests"
This reverts commit 63dd6717b0 .
* Remove Direct2D1 in ImageTests
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
4 months ago
Benedikt Stebner
d3b61cd75e
[Skia] Fix RadialGradientBrush for non center origin ( #17925 )
* Skia - Only reverse radial gradient stops if we cover the whole content bounds
* Skia - Only reverse radial gradient stops if we reach cover the whole content bounds
* Add some new lines
1 year ago
Nikita Tsukanov
04e76a9265
Make our TileBrush code a bit less byzantine ( #17098 )
* Use scalable rasterization for visual brush
* Make ConfigureSceneBrushContentWithPicture less byzantine
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Nikita Tsukanov
2299d96f98
Enable VisualBrush to be used as Visual's OpacityMask ( #17072 )
* Enable VisualBrush to be used as Visual's OpacityMask
* Add missing test file
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Benedikt Stebner
7da58ba205
Fix transform desync ( #16363 )
* Make sure wrapper and platform DrawingContext have the same transform after Flush
* Add some tests
* Update Avalonia.RenderTests.WpfCompare.csproj
* Remove comments
* Use test font
2 years ago
Benedikt Stebner
544d5372e3
Fix TileBrush Source/DestinationRect handling ( #15289 )
* Fix TileBrush Source/DestinationRect handling
* Add unit test
* Add cross render tests
* Add missing test image
2 years ago
Benedikt Stebner
23b3a767dc
Rework tile brush calculation ( #15157 )
2 years ago
Benedikt Stebner
4f8f46cb5d
Fix TransformOrigin for brushes ( #15037 )
2 years ago
Benedikt Stebner
6eb9d7a17e
Fixes/drawing brush transform ( #14978 )
* Apply brush transform to SKPicture instead to the local matrix of the resulting SKShader
* Add unit test
Implement Direct2D1
2 years ago
Nikita Tsukanov
8329efddd3
Fixes relative brush mapping mode ( #14598 )
* Fixed relative mapping mode for brushes (skia only, pending radial)
* Implemented separate RadiusX/RadiusY with proper mapping modes for RadialGradientBrush
* tests for conic brush
* Added tests for geometry drawing
* Updated DrawingBrush test image since it now matches WPF
* Update obsolete property usage
* Fixed D2D, updated radial test with D2D results that actually match WPF ones
* Fixed RadiusX/Y for radial gradients with non-centered origin
* Updated obsolete property usage
* Code cleanup
* Typo
* ApiDiff suppression
* Removed files for skipped test
* More info in obsoletion warning
* clarify
---------
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2 years ago
Benedikt Stebner
0b072f4d0d
Update test files
3 years ago
Benedikt Stebner
0442c3b337
Introduce advanced render options
3 years ago
Nikita Tsukanov
cf28998a46
Bitmap effects support
3 years ago
Nikita Tsukanov
fc96e2949f
Fixed #10539
3 years ago
Nikita Tsukanov
ae1fcfed51
Refactored DrawingContext and VisualBrush, added DrawingBrush ( #10419 )
Refactored DrawingContext and VisualBrush, added DrawingBrush
3 years ago
Nikita Tsukanov
6bdf0eacc7
Removed legacy renderers
3 years ago
Julien Lebosquain
4144be11fe
Pass GlyphInfo directly to GlyphRun
3 years ago
Benedikt Stebner
b295935286
Fix unpositioned GlyphRuns
3 years ago
Benedikt Stebner
71aba01b10
Implement FormattedText.BuildGeometry
4 years ago
Benedikt Stebner
e48c984443
Update tests
4 years ago
Benedikt Stebner
73c06b323e
Skia - Correctly translate current position when multiple glyphs are added to a path
4 years ago
Benedikt Stebner
7a533700d0
Implement GlyphRun.BuildGeometry
4 years ago
Thehx
36d6222c75
Fixed and exposed PreciseArcTo for ellipses with extreme width:height ratios
4 years ago
Steven Kirk
79f601886e
Added tests for transforms on CombinedGeometry children.
5 years ago
Steven Kirk
6e0a911a3a
Add test for transforms on GeometryGroup children.
5 years ago
Steven Kirk
f66bdefaf6
Simplified GeometryGroup tests,
5 years ago
Steven Kirk
4dbf646a73
Implement CombinedGeometry.
5 years ago
Steven Kirk
89cb076778
Implement GeometryGroup.
5 years ago
Steven Kirk
f6fce366cd
Added failing tests for TextLayout when used with a transform.
5 years ago
Steven Kirk
82754cb163
Fixed gradient brush target rectangles.
When drawn via the `DrawingContext` gradient brushes were not taking the origin of the target rect into account, only the size.
Fixes #5947 .
5 years ago
Steven Kirk
7d608a33ee
Implemented ImageDrawing.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
oliver.holliday@lontra.co.uk
8bb8f3c79f
Add Skia support for Conic Gradients. Add a place holder implementation for Direct2D using SolidColorBrushImpl.
6 years ago
oliver.holliday@lontra.co.uk
4f671b606b
Fix stop-offsets being relative to the wrong point after reversal. Copy arrays manually instead of using Linq to resolve PR comment.
6 years ago
oliver.holliday@lontra.co.uk
0d9905c051
Add expected test files
6 years ago
Steven Kirk
ba9e3e7641
Updated expected render test output.
6 years ago
Benedikt Schroeder
5824d77d0f
Fix VisualBrush tests
6 years ago
Dan Walmsley
53638845a6
Add more visualbrush tests.
7 years ago
Steven Kirk
eecd3555f9
Fix DPI in ImageBrushImpl.
And add expected output for tests. D2D now passes, skia still renders incorrectly.
7 years ago
Steven Kirk
f1c2c72400
Added failing tests for #1614 .
7 years ago
Karnah
48dd3b94d1
Using transparent brush when image source is null
8 years ago
Nelson Carrillo
88bfdf87ea
Skia backend cleanup.
8 years ago
ahopper
c6a7611150
render test fixed
8 years ago
Steven Kirk
7a5e9010a3
Added another passing ImageBrush test.
This tests what I though was a bug in #874 but comparing with WPF, it seems this is correct behavior.
9 years ago
Steven Kirk
730911fc0d
Added a couple more passing tile tests.
9 years ago
Nikita Tsukanov
90a4915549
Implemented WritableBitmap
9 years ago
Nikita Tsukanov
7013033a1b
Added `Bitmap(PixelFormat format, IntPtr data, int width, int height, int stride)` constructor
9 years ago
Nikita Tsukanov
d820dc1068
Added unit tests for skia backend
11 years ago