Ejemplo n.º 1
0
 /// <summary>TODO</summary>
 public static IPictureDisp IconToPictureDisp(this Icon icon)
 => PictureConverter.IconToPictureDisp(icon);
Ejemplo n.º 2
0
 /// <summary>TODO</summary>
 public static IPictureDisp GetResourceImage(this ResourceManager resourceManager, string imageName)
 {
     using (var image = resourceManager?.GetObject(imageName, CultureInfo.InvariantCulture) as Image) {
         return((image == null) ? null : PictureConverter.ImageToPictureDisp(image));
     }
 }
Ejemplo n.º 3
0
 /// <summary>TODO</summary>
 public static IPictureDisp ImageToPictureDisp(this Image image)
 => PictureConverter.ImageToPictureDisp(image) as IPictureDisp;
Ejemplo n.º 4
0
 /// <summary>TODO</summary>
 public static IPictureDisp GetResourceIcon(this ResourceManager resourceManager, string iconName)
 {
     using (var icon = resourceManager?.GetObject(iconName, CultureInfo.InvariantCulture) as Icon) {
         return(icon == null ? null : PictureConverter.IconToPictureDisp(icon));
     }
 }