© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
5 replies
Core

✅ SkiaSharp apply gradient on the whole canvas except to one color

Hello,

I would like to apply a gradient texture on a canvas, after the drawing is complete, and not to draw individual shapes with gradient color, that would have a different effect.

Is there a way to apply gradient to the whole canvas except to a certain color? In my case I would like the canvas background to remain white, but the black areas to have a gradient effect
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ SkiaSharp canvas scale not scaling
C#CC# / help
2y ago
Install SkiaSharp
C#CC# / help
2y ago
WinUI border to apply theme color on setting change
C#CC# / help
3y ago
using SkiaSharp but the animation isn't displayed on the app
C#CC# / help
2y ago