Ejemplo n.º 1
0
        public async Task LoadColoringPageFilesAsync()
        {
            var imageName = Settings.ColoringImageName +
                            Tools.GetResolutionTypeAsString(Settings.ColoringResolutionType);

            TemplateImage = await ColoringBookBitmapLibraryImage.LoadImageFromFileAsync(
                await Settings.GetLibraryImageLocationAsync(),
                await Settings.GetLibraryImagePreprocessingLocationAsync(),
                imageName + Tools.GetResourceString("FileType/png"),
                imageName + Tools.GetResourceString("FileType/preprocessing"));
            await LoadInkAsync(Settings.ColoringDirectory);
        }
Ejemplo n.º 2
0
        private async Task InitializeAsync(string coloringName, string templateImageName)
        {
            Settings = new ColoringBookColoringSettings(coloringName, templateImageName, Tools.ResolutionType);
            await Settings.SaveSettingsToFileAsync();

            var imageName = Settings.ColoringImageName +
                            Tools.GetResolutionTypeAsString(Settings.ColoringResolutionType);

            TemplateImage = await ColoringBookBitmapLibraryImage.LoadImageFromFileAsync(
                await Settings.GetLibraryImageLocationAsync(),
                await Settings.GetLibraryImagePreprocessingLocationAsync(),
                imageName + Tools.GetResourceString("FileType/png"),
                imageName + Tools.GetResourceString("FileType/preprocessing"));

            InkStrokeContainer = new InkStrokeContainer();
        }