How can i create a realistic highlighter (simulating a real world highlighter pen) in .NET using GDI+? It is meant to be used on a graphics object not on selectable text.
Using a transparent brush (with alpha channel) doesn't do the job since everything below the area covered by the brush gets "fuzzy", and i would like the "foreground" (mostly text) to stay clear (keep it's color).
Using a ColorMap for only the background area could work but this would require a lot of code to determine the background area and a certain threshold (i could pick the background form the first pixel or top right pixel or something).
A ColorMatrix to colorize an area seems also an option but i see the same problem as the transparent brush solution (i am no expert on ColorMatrices so i might overlook something).
I guess i need a dynamic threshold for both the foreground and the background colors but this could reduce the usability of the highlighter.
I could live with both a solution that fills a "selected" area or a brush like solution.