AcTools.Kn5File.Kn5.SetTexture C# (CSharp) Метод

SetTexture() публичный Метод

public SetTexture ( [ textureName, string filename ) : void
textureName [
filename string
Результат void
        public void SetTexture([Localizable(false)] string textureName, string filename) {
            var bytes = File.ReadAllBytes(filename);
            Textures[textureName] = new Kn5Texture {
                Active = true,
                Name = textureName,
                Length = bytes.Length
            };
            TexturesData[textureName] = bytes;
        }
    }