예제 #1
0
 public static ImagePartType Convert(XLPictureType type)
 {
     switch (type)
     {
         case XLPictureType.Bmp: return ImagePartType.Bmp;
         case XLPictureType.Gif: return ImagePartType.Gif;
         case XLPictureType.Png: return ImagePartType.Png;
         case XLPictureType.Tiff: return ImagePartType.Tiff;
         case XLPictureType.Jpeg: return ImagePartType.Jpeg;
         default:
             throw new ArgumentException("not-supported type: " + type.ToString());
     }
 }
예제 #2
0
        public static ImagePartType Convert(XLPictureType type)
        {
            switch (type)
            {
            case XLPictureType.Bmp: return(ImagePartType.Bmp);

            case XLPictureType.Gif: return(ImagePartType.Gif);

            case XLPictureType.Png: return(ImagePartType.Png);

            case XLPictureType.Tiff: return(ImagePartType.Tiff);

            case XLPictureType.Jpeg: return(ImagePartType.Jpeg);

            default:
                throw new ArgumentException("not-supported type: " + type.ToString());
            }
        }