1234567891011121314151617181920212223242526272829303132 |
- using Comal.Classes;
- using InABox.Configuration;
- using InABox.Mobile;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace PRS.Mobile
- {
- public static class PhotoUtils
- {
- public static MobileDocumentCameraOptions CreateCameraOptions()
- {
- var photoSettings = new GlobalConfiguration<MobilePhotoSettings>().Load();
- return new MobileDocumentCameraOptions()
- {
- Compression = photoSettings.PhotoCompression,
- Constraints = new System.Drawing.Size(photoSettings.MaxPhotoWidth, photoSettings.MaxPhotoHeight)
- };
- }
- public static MobileDocumentPhotoLibraryOptions CreatePhotoLibraryOptions()
- {
- var photoSettings = new GlobalConfiguration<MobilePhotoSettings>().Load();
- return new MobileDocumentPhotoLibraryOptions()
- {
- Compression = photoSettings.PhotoCompression,
- Constraints = new System.Drawing.Size(photoSettings.MaxPhotoWidth, photoSettings.MaxPhotoHeight)
- };
- }
- }
- }
|