예제 #1
0
        public async static Task <Page> CreatePageAsync(PhotoCapturedData data)
        {
            Page page = new Page();

            page.FilePath = page.GetFilePath();

            page.BackUpFilePath = page.GetBackUpFilePath();

            page.ProcessingFilePath = page.GetProcessingFilePath();

            page.FilteredFilePath = page.GetFilteredFilePath();

            page.IsFromCamera = data.IsFromCamera;

            page.DateCreated = page.DateToString();

            page.TimeCreated = page.TimeOfDayToString();

            page.Number = 1;

            page.Size = data.ImageFileSize;

            page.PageName = "Page" + page.Number.ToString();

            page.DocumentId = Guid.Empty;

            return(page);
        }
예제 #2
0
        public async static Task<Page> CreatePageAsync(PhotoCapturedData data)
        {
            Page page = new Page();

            page.FilePath = page.GetFilePath();

            page.BackUpFilePath = page.GetBackUpFilePath();

            page.ProcessingFilePath = page.GetProcessingFilePath();

            page.FilteredFilePath = page.GetFilteredFilePath();

            page.IsFromCamera = data.IsFromCamera;

            page.DateCreated = page.DateToString();

            page.TimeCreated = page.TimeOfDayToString();

            page.Number = 1;

            page.Size = data.ImageFileSize;

            page.PageName = "Page" + page.Number.ToString();

            page.DocumentId = Guid.Empty;

            return page;
        }
예제 #3
0
        public static async Task<PhotoCapturedData> CreatePhotoCapturedDataAsync(StorageFile imageFile, string categoryName)
        {
            var photoData = new PhotoCapturedData(categoryName);

            photoData.ImageFile = imageFile;

            photoData.ImageFileSize = (await imageFile.GetBasicPropertiesAsync()).Size;

            return photoData;
        }
예제 #4
0
        public static async Task <PhotoCapturedData> CreatePhotoCapturedDataAsync(StorageFile imageFile, string categoryName)
        {
            var photoData = new PhotoCapturedData(categoryName);

            photoData.ImageFile = imageFile;

            photoData.ImageFileSize = (await imageFile.GetBasicPropertiesAsync()).Size;

            return(photoData);
        }
예제 #5
0
        public async static Task<Document> CreateDocumentAsync(PhotoCapturedData capturedData)
        {
            var createdDocument = new Document(capturedData.CategoryName);

            var firstPage = await Page.CreatePageAsync(capturedData);

            firstPage.DocumentId = createdDocument.ID;

            createdDocument.Pages.Add(firstPage);

            createdDocument.DocumentSize = firstPage.MbSize;

            return createdDocument;
        }
예제 #6
0
        public async static Task <Document> CreateDocumentAsync(PhotoCapturedData capturedData)
        {
            var createdDocument = new Document(capturedData.CategoryName);

            var firstPage = await Page.CreatePageAsync(capturedData);

            firstPage.DocumentId = createdDocument.ID;

            createdDocument.Pages.Add(firstPage);

            createdDocument.DocumentSize = firstPage.MbSize;

            return(createdDocument);
        }