コード例 #1
0
 /// <summary>
 /// 图片信息转换为图标
 /// </summary>
 public Icons CreateIcon(ImageInfo image)
 {
     var result = new Icons
     {
         Path = image.FilePath,
         Name = image.FileName,
         Width = image.Size.Width,
         Height = image.Size.Height,
         Size = image.Length.GetSize()
     };
     result.GenerateCss(image.FilePath);
     return result;
 }
コード例 #2
0
 /// <summary>
 /// 转换为图标
 /// </summary>
 private Icons ToIcon(ImageInfo image)
 {
     var result = CreateIcon(image);
     return result;
 }