Search code examples
c#.netcompact-frameworkdrawing2d

Proper Drawing2D class for NET CF?


As I recently found out Drawing2D class of NET CF is missing most of it's functionality. Is there a way to expand it with for example "LinearGradientBrush"?


Solution

  • If you're specifically looking for a replacement for LinearGradientBrush, there is a Win32 function called GradientFill.

    Here's an example showing how to use it:

    How to: Display a Gradient Fill