Hi Cristian,
Thanks for your posting!
Based on my experience, the simple way to create a buffer is using the
Graphics object to draw line, and then save the Graphics as the Bitmap. The
below article has shown us the GAPI how to create the buffer:
http://www.devx.com/Intel/Article/17711 Actually, there is not easy to use the managed code does the same thing
like GAPI does. As we all know, the performance of managed code is not good
as the unmanaged code do. So if you have more concern about the
performance, I suggest you try to use the unmanaged code. If the unmanaged
code also has bad performance, maybe the algorithm causes it which I have
said before.
If you have any concern, please for you free let me know, I'm glad to be
the future assistant.
Regards,
Yuan Ren [MSFT]
Microsoft Online Support