Click or drag to resize

Sprite Constructor

Overload List
  NameDescription
Public methodSprite(Sprite, Boolean)
Create a Sprite that is based off of the specified sprite. Clone the Sprite except that we set SpriteName = "" and OrigSpriteName = the OldSprite.SpriteName. That way we know that the sprite was duplicated from the original, and we can still distinguish the original from the duplicate.
Public methodSprite(SpriteController, Image)
Generate a new single-frame sprite from the specified image.
Public methodSprite(SpriteController, Image, Size)
Generate a new sprite. It takes the image and the width and height. If there are multiple images of that width and height in the image, an animation is created.
Public methodSprite(SpriteController, Image, Int32, Int32)
Generate a new sprite. It takes the image and the width and height. If there are multiple images of that width and height in the image, an animation is created.
Public methodSprite(SpriteController, Image, Int32, Int32, Int32)
Generate a new sprite. It takes a width, height, and the duration in Milliseconds for each frame
Public methodSprite(Point, SpriteController, Image, Int32, Int32, Int32, Int32)
Create a Sprite from an animation image, specifying the number of consecutive frames to grab.
Top
See Also