The SimpleImage type exposes the following members.

Constructors

  Name Description
Public method SimpleImage
Construct a simple image to be drawn.

Methods

  Name Description
Public method Draw
Draw the image
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method SetPositionTo
Sets the center positino of the image.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Protected field mImage
The image to be drawn
Protected field mLocation
The place where the image will be drawn Remember: that top-left is the origin for spriteBatch.

Properties

  Name Description
Public property CenterX
Set/Get the center X position of the image
Public property CenterY
Set/Get the center Y position of the image
Public property IsVisible
Set/Get visibility of the image

See Also