G'day all,
I need to provide implementation of a function declared as:
DrawGradientBitmap(CDC *pDC, COLORREF col1, COLORREF col2);
which should produce a gradient bitmap looking something like:
where col1
is the color in the center of drawing and col2
is the color in the corners, using only plain GDI in C++ MFC.
I've studied about bitmaps and all the essential GDI objects, but I can't get a clue where to start with this one. I'm not looking for code samples (not that I would mind any), but only a tips on how to draw something like this, a general approach.
Thank you.