/// <summary> /// Saves the photo. /// </summary> /// <param name="fileName">Name of the file.</param> /// <param name="format">The format.</param> /// <returns></returns> public bool SavePhoto(string fileName, PhotoFormat format) { bool result = false; switch (format) { case PhotoFormat.Bmp: result = NativeMethods.SavePhotoAsBitmapEx(reader.Index, fileName); break; case PhotoFormat.Jpeg: result = NativeMethods.SavePhotoAsJpegEx(reader.Index, fileName); break; default: break; } return(result); }
public Photo(PhotoFormat format) { this.Format = format; }