Fix RenderTargetBitmap looses effects by timunie · Pull Request #20790 · AvaloniaUI/Avalonia (original) (raw)

MrJul

@timunie

@timunie

@timunie

@timunie

@timunie

@timunie

don't get lost at some point in time

@timunie

@timunie

@timunie

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

@timunie

… output padding

GetBounds() should return content/geometric bounds only, matching WPF behavior. Inflating by GetEffectOutputPadding() caused DrawingImage to shift its coordinate origin by the effect's extent (e.g. a 3.5px shadow offset would displace all content by 3.5px), breaking Should_Render_DrawingGroup_With_Effect render test.

Effects render additively outside the content area and must not affect the coordinate system established by GetBounds().

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

@timunie

Co-authored-by: Copilot Autofix powered by AI 175728472+Copilot@users.noreply.github.com

@timunie

@timunie

@timunie

MrJul added a commit to MrJul/Avalonia that referenced this pull request

May 28, 2026

@timunie

@MrJul

don't get lost at some point in time

Co-authored-by: Copilot Autofix powered by AI 175728472+Copilot@users.noreply.github.com

Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

GetBounds() should return content/geometric bounds only, matching WPF behavior. Inflating by GetEffectOutputPadding() caused DrawingImage to shift its coordinate origin by the effect's extent (e.g. a 3.5px shadow offset would displace all content by 3.5px), breaking Should_Render_DrawingGroup_With_Effect render test.

Effects render additively outside the content area and must not affect the coordinate system established by GetBounds().

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Co-authored-by: Copilot Autofix powered by AI 175728472+Copilot@users.noreply.github.com


Co-authored-by: Copilot Autofix powered by AI 175728472+Copilot@users.noreply.github.com Co-authored-by: Julien Lebosquain julien@lebosquain.net Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

@timunie timunie deleted the fix/RTB_ignores_Shadow branch

June 1, 2026 13:20

@Jaex Jaex mentioned this pull request

Jun 3, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})