public static Texture ReadLocalFile(string file) { ReadTextureFile rf = new ReadTextureFile(); rf.m_file = file; rf._ReadResourceFile(); return(rf.m_texture); }
public static ReadTextureFile Create(string file) { ReadTextureFile rf = new ReadTextureFile(); if (rf != null && !string.IsNullOrEmpty(file)) { rf.m_file = file; rf.m_bHttp = file.Contains("http:") || file.Contains("https:"); rf.Read(); } return(rf); }