Beispiel #1
0
 Image CreateImage(byte[] data)
 {
     if (data == null)
     {
         return(null);// ResourceImageHelper.CreateImageFromResourcesEx("DevExpress.DevAV.Resources.Unknown-user.png", typeof(Employee).Assembly);
     }
     else
     {
         return(DevAVByteImageConverter.FromByteArray(data));
     }
 }
Beispiel #2
0
 internal static Image CreateImage(this Picture picture, string defaultImage = null)
 {
     if (picture == null)
     {
         return(null);
         //if (string.IsNullOrEmpty(defaultImage))
         //    defaultImage = DefaultPic;
         //return ResourceImageHelper.CreateImageFromResourcesEx(defaultImage, typeof(Picture).Assembly);
     }
     else
     {
         return(DevAVByteImageConverter.FromByteArray(picture.Data));
     }
 }