You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Add support for Transform and RelativeTransform (not sure if this one is needed) property for Brush'es (LinearGradientBrush, RadialGradientBrush and VisualBrush).
Add to Brush two transformation properties: Transform and RelativeTransform. The properties enable rotate, scale, skew, and translate a brush's contents.
Describe alternatives you've considered
Did try manually transform brush properties, but that doesn't really work.
Additional context
It is very useful for example when converting Svg paint servers to Avalonia brushes. As paint server can use user space coordinates and bounding box coordinates and can have transform property set for brush transformations. Right now I am using LinearGradientBrush, RadialGradientBrush and VisualBrush and all of them require transform.
SkiaSharp support local matrix parameter when creating shaders for brushes:
Is your feature request related to a problem? Please describe.
Add support for
Transform
andRelativeTransform
(not sure if this one is needed) property for Brush'es (LinearGradientBrush, RadialGradientBrush and VisualBrush).Describe the solution you'd like
Add to Brush two transformation properties:
Transform
andRelativeTransform
. The properties enable rotate, scale, skew, and translate a brush's contents.Describe alternatives you've considered
Did try manually transform brush properties, but that doesn't really work.
Additional context
It is very useful for example when converting Svg paint servers to Avalonia brushes. As paint server can use user space coordinates and bounding box coordinates and can have transform property set for brush transformations. Right now I am using LinearGradientBrush, RadialGradientBrush and VisualBrush and all of them require transform.
SkiaSharp support local matrix parameter when creating shaders for brushes:
CreateLinearGradient
CreateRadialGradient
CreateTwoPointConicalGradient
CreatePicture
That is what I use for Svg rendering.
I am converting the svg brushes to WPF xaml here https://github.com/wieslawsoltes/SvgGradientsDemo for reference.
The text was updated successfully, but these errors were encountered: