How to serialize an image

  • Thread starter Thread starter Juan Romero
  • Start date Start date
J

Juan Romero

Hey guys,
Does anyone know how to serialize an image or a class inherited from image?

Thank you.
 
Hi Juan,

Do you mean something as this,

I did send it today in this thread.

Dim ms As New MemoryStream
Dim arrImage() As Byte
originalImage.Save(ms, ImageFormat.Jpeg)
arrImage = ms.GetBuffer

I thought ImageFormat.Bmp is better but I needed this for something extra

I hope this helps

Cor
 
* "Juan Romero said:
Does anyone know how to serialize an image or a class inherited from image?

Mhm... The 'Bitmap' class is marked as 'Serializable', so what's the
problem?
 
Back
Top