Image Class

SFML.Net

Image Class
Image is the low-level class for loading and manipulating images
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.GraphicsImage

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class Image : ObjectBase
Public Class Image
	Inherits ObjectBase
public ref class Image : public ObjectBase
type Image =  
    class
        inherit ObjectBase
    end

The Image type exposes the following members.

Constructors
  NameDescription
Public methodImage(Byte)
Construct the image from a file in memory
Public methodImage(Stream)
Construct the image from a file in a stream
Public methodImage(String)
Construct the image from a file
Public methodImage(Color)
Construct the image directly from an array of pixels
Public methodImage(Image)
Construct the image from another image
Public methodImage(UInt32, UInt32)
Construct the image with black color
Public methodImage(UInt32, UInt32, Color)
Construct the image from a single color
Public methodImage(UInt32, UInt32, Byte)
Construct the image directly from an array of pixels
Top
Methods
  NameDescription
Public methodCopy(Image, UInt32, UInt32)
Copy pixels from another image onto this one. This function does a slow pixel copy and should only be used at initialization time
Public methodCopy(Image, UInt32, UInt32, IntRect)
Copy pixels from another image onto this one. This function does a slow pixel copy and should only be used at initialization time
Public methodCopy(Image, UInt32, UInt32, IntRect, Boolean)
Copy pixels from another image onto this one. This function does a slow pixel copy and should only be used at initialization time
Public methodCreateMaskFromColor(Color)
Create a transparency mask from a specified colorkey
Public methodCreateMaskFromColor(Color, Byte)
Create a transparency mask from a specified colorkey
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodFlipHorizontally
Flip the image horizontally
Public methodFlipVertically
Flip the image vertically
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPixel
Get a pixel from the image
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSaveToFile
Save the contents of the image to a file
Public methodSetPixel
Change the color of a pixel
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyPixels
Get a copy of the array of pixels (RGBA 8 bits integers components) Array size is Width x Height x 4
Public propertySize
Size of the image, in pixels
Top
See Also