C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Whats the Fastest Way to Display Images in a C#.NET application Posted by gemini99 on 16 Dec 2010 at 10:01 AM
Hello there

I have developed a C#.NET application that reads image data from a camera. The images are 1600*1200 and are 24bpp. I am trying to stream the images as fast as possible to a child window for display. My first attempt involved creating a Bitmap object and using SetPixel to create the bitmap. This is then sent to a PictureBox control in the child Window.

However its well know SetPixel is chronically slow. So I downloaded a FastBitmap class that uses unsafe mode and locks the bits and draws the bitmap faster. This speeds it up by about 80% or so but it still looks very slow to me.

Can this be done using DirectX? Has anyone tried something like this?

Thanks.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.