Windows Develop Bookmark and Share   
 index > Windows Forms General > Readng Bitmap Files
 

Readng Bitmap Files

hello
i need faster code for reading all type of bitmaps, without any crashes.
Zarei Ramin  Tuesday, February 03, 2009 8:52 AM
Zarei Ramin,

so how about the bitmap class?

Bitmap bm = new Bitmap( pathToBitmapFileGoesHere );

WM_HOPETHISHELPS
-thomas woelfer
http://www.die.de/blog
  • Marked As Answer bySteven.Yu Monday, February 09, 2009 2:11 AM
  •  
thomas_woelfer  Friday, February 06, 2009 2:01 PM
Zarei Ramin,

faster compared to what?

WM_QUERY
-thomas woelfer
http://www.die.de/blog
thomas_woelfer  Tuesday, February 03, 2009 4:57 PM
thomas_woelfer said:

Zarei Ramin,

faster compared to what?

WM_QUERY
-thomas woelfer


http://www.die.de/blog



i need C# code for reading bmp files
please
Zarei Ramin  Friday, February 06, 2009 1:29 PM
Zarei Ramin,

so how about the bitmap class?

Bitmap bm = new Bitmap( pathToBitmapFileGoesHere );

WM_HOPETHISHELPS
-thomas woelfer
http://www.die.de/blog
  • Marked As Answer bySteven.Yu Monday, February 09, 2009 2:11 AM
  •  
thomas_woelfer  Friday, February 06, 2009 2:01 PM
thomas_woelfer said:

Zarei Ramin,

so how about the bitmap class?

Bitmap bm = new Bitmap( pathToBitmapFileGoesHere );

WM_HOPETHISHELPS
-thomas woelfer


http://www.die.de/blog


becuase setpixel and getpixel is very slow
Zarei Ramin  Thursday, February 19, 2009 8:07 AM
setpixel and getpixel have nothing to do with reading bitmap files.

incase you want to access the bitmap data directly in order to manipulate it, and incase you need to do this alot and fast, you might want to consider unsafe code. there's an example for that here.

WM_HOPETHISHELPS
-thomas woelfer
http://www.die.de/blog
thomas_woelfer  Thursday, February 19, 2009 8:53 AM

You can use google to search for other answers

Custom Search

More Threads

• Custom Forms in Outlook 2002
• enter tab every 40 chars
• Autocomplete: Same two names, different objects
• Drop down list databinding in windows forms
• Menu location on the form?
• How to cancel form load, if error is detected during constructor execution or load event
• DataGridView reset display position on DataTable.AcceptChanges()
• Nudge TreeNode Sibling Order Up or Down
• Transparent Image to see through form?
• How to implement a multi threaded user interface ?