예제 #1
0
        public int GetMinWidth(ImageType type)
        {
            var option = ImageOptions.FirstOrDefault(i => i.Type == type);

            return(option == null ? 0 : option.MinWidth);
        }
예제 #2
0
        public int GetLimit(ImageType type)
        {
            var option = ImageOptions.FirstOrDefault(i => i.Type == type);

            return(option == null ? 1 : option.Limit);
        }