This would be slow.
gdi.dll is full of functions that could do that so there is no reason to use an other way.