I have been working on some GDI+ code in .NET and have been learning my lessons the hard way. Simple things like:
- What looks good on screen may not look nice on paper and vice versa
- Caching too many objects can result in an OutOfMemoryException
- Floats aren't exact
...and so on. I'm sure there is a lot more that experienced folk can add to this.
What are some good rules to follow when using GDI+ or any graphics library in general?
One useful tip per post will be nice. Thanks.