Exemplo n.º 1
0
 internal static void SerializeIconInfo(Icon icon, Stream outgoingData)
 {
     using (var iconInfo = new ImageSerializationInfo(icon))
         iconInfo.Write(new BinaryWriter(outgoingData));
 }
Exemplo n.º 2
0
 internal static void SerializeImageInfo(Image image, Stream outgoingData)
 {
     using (var imageInfo = new ImageSerializationInfo(image))
         imageInfo.Write(new BinaryWriter(outgoingData));
 }