The title speaks for itself… I’ve tried to find another question like it but must have missed it if it exists. I’m looking for anything, from a core library replacing GAPI to a .net wrapper… It’s for building a nice UI so no 3D needed…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The System.Drawing classes in .NET are a lot more powerful than people realize. The only thing missing (which is actually really important in 2D graphics) is the ability to read and write individual pixels. This is technically possible using the GetPixel and SetPixel methods on the Bitmap object, but these methods are unimaginably slow.
Fortunately, there is a super-fast alternative that you can implement by calling LockBits on a bitmap and then accessing the bitmap’s byte data directly. I’ve used this to good effect. In fact, I’ve spent the last week creating a fisheye lens effect entirely in .NET (no libraries or PInvoke calls at all).
This JPEG is kind of crappy, but it shows what’s possible using just .NET:
alt text http://www.freeimagehosting.net/uploads/5fdd250b21.jpg