mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Remove unsupported image types from filters
This commit is contained in:
parent
c5f1d82d09
commit
3282a373fa
@ -25,14 +25,11 @@ public class FileFilters
|
|||||||
if (groups.HasFlag(FileFilterGroup.AllImages))
|
if (groups.HasFlag(FileFilterGroup.AllImages))
|
||||||
{
|
{
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeImageFiles,
|
filters.Add(new FileFilter(MiscResources.FileTypeImageFiles,
|
||||||
".bmp", ".emf", ".exif", ".gif", "jpg", ".jpeg", ".png", ".tiff", ".tif"));
|
".bmp", "jpg", ".jpeg", ".png", ".tiff", ".tif"));
|
||||||
}
|
}
|
||||||
if (groups.HasFlag(FileFilterGroup.Image))
|
if (groups.HasFlag(FileFilterGroup.Image))
|
||||||
{
|
{
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeBmp, ".bmp"));
|
filters.Add(new FileFilter(MiscResources.FileTypeBmp, ".bmp"));
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeEmf, ".emf"));
|
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeExif, ".exif"));
|
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeGif, ".gif"));
|
|
||||||
filters.Add(new FileFilter(MiscResources.FileTypeJpeg, ".jpg", ".jpeg"));
|
filters.Add(new FileFilter(MiscResources.FileTypeJpeg, ".jpg", ".jpeg"));
|
||||||
if (_imageContext.SupportsFormat(ImageFileFormat.Jpeg2000))
|
if (_imageContext.SupportsFormat(ImageFileFormat.Jpeg2000))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user