SFML.Graphics.Texture.Texture C# (CSharp) Method

Texture() public method

Construct the texture from an image
public Texture ( Image image, IntRect area ) : System
image Image Image to load to the texture
area IntRect Area of the image to load
return System
        public Texture(Image image, IntRect area) :
            base(sfTexture_createFromImage(image.CPointer, ref area))
        {
            if (CPointer == IntPtr.Zero)
                throw new LoadingFailedException("texture");
        }

Same methods

Texture::Texture ( Image image ) : System
Texture::Texture ( IntPtr cPointer ) : System
Texture::Texture ( Stream stream ) : System
Texture::Texture ( Stream stream, IntRect area ) : System
Texture::Texture ( Texture copy ) : System
Texture::Texture ( byte bytes ) : System
Texture::Texture ( string filename ) : System
Texture::Texture ( string filename, IntRect area ) : System
Texture::Texture ( uint width, uint height ) : System