Convert a Bitmap to a Byte Array?

derbiscuitkopf

New member
Joined
Oct 20, 2005
Messages
1
Programming Experience
Beginner
Greetings,
I think I know the answer to this question already but I thought it would be worth while to ask it anyways. I need to convert a bitmap object to a byte array...is there anyway to do this? Is there any easy way to save a bitmap to a file?

I'm taking byte array converting it to a bitmap, cropping it and then trying to save it to a file. I am able to convert the byte array to a bitmap and crop it but I can't seem to find any easy ways to save it to a file. The most logical answer seems to be to convert the bitmap back to a byte array and to save it to a file via the fileStream class.

Thanks
 
Back
Top