Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/10 12:54:14 (15 years ago)
Author:
epitzer
Message:

add complete persistence API docs (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/System.Drawing/Bitmap2XmlSerializer.cs

    r2965 r3004  
    1111
    1212namespace HeuristicLab.Persistence.Default.Xml.Primitive {
    13   public class Bitmap2XmlSerializer :PrimitiveXmlSerializerBase<Bitmap>{
    14     private static Regex re = new Regex(@"<!\[CDATA\[((?:[^]]|\](?!\]>))*)\]\]>", RegexOptions.Singleline);
     13  public class Bitmap2XmlSerializer : PrimitiveXmlSerializerBase<Bitmap> {
    1514
    1615    public override XmlString Format(Bitmap o) {
    1716      MemoryStream stream = new MemoryStream();
    18       o.Save(stream,ImageFormat.Png);
     17      o.Save(stream, ImageFormat.Png);
    1918      byte[] array = stream.ToArray();
    2019      Byte1DArray2XmlSerializer serializer = new Byte1DArray2XmlSerializer();
     
    3231      Bitmap bitmap = new Bitmap(stream);
    3332      return bitmap;
    34   }
     33    }
    3534  }
    3635}
Note: See TracChangeset for help on using the changeset viewer.