internal static bool Convert(ref string resourceName, FileStream src, MemoryStream dst) { switch (Path.GetExtension(resourceName).ToLower()) { case ".png": if (resourceName != "icon.png" && ImageIO.ToRaw(src, dst)) { resourceName = Path.ChangeExtension(resourceName, "rawimg"); return(true); } src.Position = 0; return(false); default: return(false); } }