Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for path gradient shader in SKShader Class #3134

Closed
1 task done
RamarajMarimuthu opened this issue Jan 7, 2025 · 0 comments
Closed
1 task done

Add support for path gradient shader in SKShader Class #3134

RamarajMarimuthu opened this issue Jan 7, 2025 · 0 comments

Comments

@RamarajMarimuthu
Copy link

Is your feature request related to a problem?

We aim to achieve a path gradient effect using the SkiaSharp library. However, there isn't a shader effect available that replicates the path gradient functionality found in the System.Drawing library.

We are expecting a SKShader.CreatePathGradient() method in SKShader Class.

Please refer the below System.Drawing reference links,
https://learn.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-create-a-path-gradient?view=netframeworkdesktop-4.8
https://learn.microsoft.com/en-us/dotnet/api/system.drawing.drawing2d.pathgradientbrush?view=windowsdesktop-9.0

Note: We are focusing on cross-platform rendering, which means we cannot utilize System.Drawing APIs.

Describe the solution you would like

We are expecting a SKShader.CreatePathGradient() method in SKShader Class, which works more similar to PathGradientBrush.

Describe alternatives you have considered

Currently, we are using Radial Gradient Shader as an alternative for Path Gradient Shader.

Additional context

Our requirement is to draw the path gradient effect in image file as similar to Microsoft Word.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mono mono locked and limited conversation to collaborators Jan 7, 2025
@mattleibow mattleibow converted this issue into discussion #3135 Jan 7, 2025
@github-project-automation github-project-automation bot moved this from New to Done in SkiaSharp Backlog Jan 7, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
Status: Done
Development

No branches or pull requests

1 participant