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

Image() public method

Construct the image from a file in a stream
public Image ( System.Stream stream ) : System
stream System.Stream Stream containing the file contents
return System
        public Image(Stream stream) :
            base(IntPtr.Zero)
        {
            using (StreamAdaptor adaptor = new StreamAdaptor(stream))
            {
                CPointer = sfImage_createFromStream(adaptor.InputStreamPtr);
            }

            if (CPointer == IntPtr.Zero)
                throw new LoadingFailedException("image");
        }

Same methods

Image::Image ( System.Color pixels ) : System
Image::Image ( Image copy ) : System
Image::Image ( IntPtr cPointer ) : System
Image::Image ( byte bytes ) : System
Image::Image ( string filename ) : System
Image::Image ( uint width, uint height ) : System
Image::Image ( uint width, uint height, System.Color color ) : System
Image::Image ( uint width, uint height, byte pixels ) : System