Ejemplo n.º 1
0
        static string GetSlicingMode(ImageResizing.SlicingType mode)
        {
            switch (mode)
            {
            case ImageResizing.SlicingType.Horizontal: return("3-part-horizontal");

            case ImageResizing.SlicingType.Vertical: return("3-part-vertical");

            case ImageResizing.SlicingType.HorizontalAndVertical: return("9-part");
            }
            return("");
        }
Ejemplo n.º 2
0
 private static string GetSlicingMode(ImageResizing.SlicingType mode)
 {
     if (mode == ImageResizing.SlicingType.Horizontal)
     {
         return("3-part-horizontal");
     }
     if (mode == ImageResizing.SlicingType.Vertical)
     {
         return("3-part-vertical");
     }
     return(mode == ImageResizing.SlicingType.HorizontalAndVertical ? "9-part" : "");
 }