Example #1
0
        public void LoadFromFile(string path)
        {
            srcImagePath = path;
            texture = TextureFactory.CreateTexture();
            texture.InitFromFile(path);

            if (!Animated)
            {
                ClipWidth = (int)texture.Width;
                ClipHeight = (int)texture.Height;
            }
        }