/// <summary> /// Gets the embedded image. /// </summary> /// <param name="type">The type.</param> /// <param name="fileName">Name of the file.</param> /// <returns></returns> /// <remarks></remarks> public static Bitmap GetEmbeddedImage(Type type, string fileName) { Stream str = ResourceUtil.GetEmbeddedFile(type, fileName); return(new Bitmap(str)); }