public override Document Create(Platform generator) { Document doc = new ImageDocument(this); doc.Generator = generator; return(doc); }
public void Save(Stream stream, Document document) { ImageDocument doc = (ImageDocument)document; if (doc.Image != null) { doc.Image.Save(stream, imageFormat); } }
public Handler(ImageDocument doc) : base(doc) { }
public void Load(Stream fs, Document document, Pablo.Handler handler) { ImageDocument doc = (ImageDocument)document; doc.Image = new Bitmap(fs); }