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>
1 year 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
1 year ago
Benedikt Stebner
1a4fed815a
Correctly handle x,y offset for Bitmap.CopyPixels ( #15510 )
* Correctly handle x,y offset for Bitmap.CopyPixels
* Remove using
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
4dbb165a7b
Reworked the way we are clipping dirty rects with CompositionTarget ( #14806 )
* Reworked dirty rect tracking to support regions
* Fixed FPS counter
2 years ago
Julien Lebosquain
cac27ddfc0
Misc warning fixes ( #14766 )
* Fix XML doc warnings
* Fix nullability warnings
* Fix misc warnings
2 years ago
Julien Lebosquain
a63474300b
Fix RadialGradientBrush.Radius obsolete usages ( #14774 )
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
Julien Lebosquain
3fa13d3b64
Warning cleanup 2 ( #13696 )
2 years ago
Lehonti Ramos
d1444b4f7c
Modernized accessor syntax in several places ( #13044 )
* Modernized accessor syntax in several places
* Toned down the getter modernization
* Block body for properties with code
---------
Co-authored-by: Lehonti Ramos <lehonti@ramos>
2 years ago
Nikita Tsukanov
8680c612fd
OSX rendering refactoring
3 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
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
530f176783
Added Rgb24 and Bgr24
3 years ago
Giuseppe Lippolis
3f306b48ab
fix(DrawingContext): CS0618 PushPreTransform(Matrix)' is obsolete: 'Use PushTransform'
```bash
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\ConicGradientBrushTests.cs 203 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\LinearGradientBrushTests.cs 98 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\RadialGradientBrushTests.cs 188 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\TextFormatting\TextLayoutTests.cs 315 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Skia.UnitTests .\tests\Avalonia.Skia.UnitTests\Media\TextFormatting\TextFormatterTests.cs 795 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 136 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 140 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 144 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 146 Active
Warning CS0618 'DrawingContext.PushPostTransform(Matrix)' is obsolete: 'Use PushTransform' RenderDemo .\samples\RenderDemo\Pages\RenderTargetBitmapPage.cs 32 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Base (net6.0), Avalonia.Base (netstandard2.0) .\src\Avalonia.Base\Media\DrawingGroup.cs 76 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 91 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 115 Active
```
3 years ago
Benedikt Stebner
48a54d67d3
Use test font family for TextLayoutTests
3 years ago
Nikita Tsukanov
ae1fcfed51
Refactored DrawingContext and VisualBrush, added DrawingBrush ( #10419 )
Refactored DrawingContext and VisualBrush, added DrawingBrush
3 years ago
Benedikt Stebner
f5caa61051
[SKIA] UseOpacitySaveLayer feature switch ( #9964 )
* [SKIA] Introduce UseOpacitySaveLayer feature switch
* Only maintain _currentOpacity when OpacitySaveLayer is disabled
3 years ago
Nikita Tsukanov
a0adee3d00
Added a ctor for populating WriteableBitmap with initial data
3 years ago
Nikita Tsukanov
abf8819947
Implemented pixel format transcoding for Bitmap and WriteableBitmap
3 years ago
Julien Lebosquain
4144be11fe
Pass GlyphInfo directly to GlyphRun
3 years ago
Simon Cropp
dba476c11c
fix more typos
3 years ago
Nikita Tsukanov
eaf2ce38a4
Context management
3 years ago
Benedikt
73a892f13e
Only run tests on Windows
3 years ago
Benedikt Stebner
b295935286
Fix unpositioned GlyphRuns
3 years ago
Benedikt Stebner
b4e5ad0435
Add failing tests
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
3 years ago
Takoooooo
825fcfab31
Remove obsolete members from Avalonia.Base namespace
4 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
Patrick Tellier
e47b742d3e
Use own Pen (if set) in GeometryDrawing.GetBounds
4 years ago
Benedikt Stebner
a34e0f50e2
Bump
4 years ago
Benedikt Stebner
1db3296611
Fix TextBlock/TextPresenter measure/arrange
Fix TextTrimming for small width
Fix text splitting
Fix text editing shortcuts
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
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.
4 years ago
Steven Kirk
6e0a911a3a
Add test for transforms on GeometryGroup children.
4 years ago
Steven Kirk
f66bdefaf6
Simplified GeometryGroup tests,
4 years ago
Steven Kirk
4dbf646a73
Implement CombinedGeometry.
4 years ago
Steven Kirk
89cb076778
Implement GeometryGroup.
4 years ago
Steven Kirk
2a09574ba7
Revert "Fixed gradient brush target rectangles."
Reverts #6066 . Keeps the render tests to demonstrate that the WPF behavior can be reproduced by pushing a translation.
4 years ago
Steven Kirk
9718a77fa9
Skip TextLayout render tests on OSX.
They were failing due to slightly different text rendering on that platform.
5 years ago
Steven Kirk
f6fce366cd
Added failing tests for TextLayout when used with a transform.
5 years ago