Search Results for

    Show / Hide Table of Contents

    Constructor Sprite

    Sprite(String, String, SizeF, PointF)

    Initializes a new instance of the Sprite class used for drawing in game textures on the screen.

    Declaration
    public Sprite(string textureDict, string textureName, SizeF size, PointF position)
    Parameters
    Type Name Description
    System.String textureDict

    The Texture dictionary where the Sprite is stored (the *.ytd file).

    System.String textureName

    Name of the Sprite inside the Texture dictionary.

    System.Drawing.SizeF size

    Set the Size of the Sprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the Sprite.

    Sprite(String, String, SizeF, PointF, Color)

    Initializes a new instance of the Sprite class used for drawing in game textures on the screen.

    Declaration
    public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color)
    Parameters
    Type Name Description
    System.String textureDict

    The Texture dictionary where the Sprite is stored (the *.ytd file).

    System.String textureName

    Name of the Sprite inside the Texture dictionary.

    System.Drawing.SizeF size

    Set the Size of the Sprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the Sprite.

    System.Drawing.Color color

    Set the Color used to draw the Sprite.

    Sprite(String, String, SizeF, PointF, Color, Single)

    Initializes a new instance of the Sprite class used for drawing in game textures on the screen.

    Declaration
    public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color, float rotation)
    Parameters
    Type Name Description
    System.String textureDict

    The Texture dictionary where the Sprite is stored (the *.ytd file).

    System.String textureName

    Name of the Sprite inside the Texture dictionary.

    System.Drawing.SizeF size

    Set the Size of the Sprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the Sprite.

    System.Drawing.Color color

    Set the Color used to draw the Sprite.

    System.Single rotation

    Set the rotation to draw the sprite, measured in degrees, see also Rotation.

    Sprite(String, String, SizeF, PointF, Color, Single, Boolean)

    Initializes a new instance of the Sprite class used for drawing in game textures on the screen.

    Declaration
    public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color, float rotation, bool centered)
    Parameters
    Type Name Description
    System.String textureDict

    The Texture dictionary where the Sprite is stored (the *.ytd file).

    System.String textureName

    Name of the Sprite inside the Texture dictionary.

    System.Drawing.SizeF size

    Set the Size of the Sprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the Sprite.

    System.Drawing.Color color

    Set the Color used to draw the Sprite.

    System.Single rotation

    Set the rotation to draw the sprite, measured in degrees, see also Rotation.

    System.Boolean centered

    Position the Sprite based on its center instead of top left corner, see also Centered.

    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX