public void LoadFromFile(string path) { srcImagePath = path; texture = TextureFactory.CreateTexture(); texture.InitFromFile(path); if (!Animated) { ClipWidth = (int)texture.Width; ClipHeight = (int)texture.Height; } }
public void LoadFromFile(string path) { srcImagePath = path; texture = TextureFactory.CreateTexture(); texture.InitFromFile(path); if (!Animated) { ClipWidth = (int)texture.Width; ClipHeight = (int)texture.Height; } }