/// <summary> /// Deletes this PreviewBitmap's source JPEG. /// </summary> private void DeleteSource() { store.Delete(); store = null; }
/// <summary> /// Loads this PreviewBitmap from an ImageStore. /// </summary> /// <param name="id">The identifier of the ImageStore.</param> public void Load(string id) { //remove old source JPEG if it exists if (store != null) DeleteSource(); store = new ImageStore(id); Load(); }
/// <summary> /// Creates this PreviewBitmap's source JPEG. /// </summary> /// <returns>The created JPEG's stream.</returns> private Stream CreateSource() { store = new ImageStore(); return store.CreateFile("source.jpg"); }