Search Results for

    Show / Hide Table of Contents

    Constructor CustomSprite

    CustomSprite(String, SizeF, PointF)

    Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.

    Declaration
    public CustomSprite(string filename, SizeF size, PointF position)
    Parameters
    Type Name Description
    System.String filename

    Full path to location of the CustomSprite on the disc.

    System.Drawing.SizeF size

    Set the Size of the CustomSprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the CustomSprite.

    Exceptions
    Type Condition
    System.IO.FileNotFoundException

    Thrown if the specified file doesn't exist

    CustomSprite(String, SizeF, PointF, Color)

    Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.

    Declaration
    public CustomSprite(string filename, SizeF size, PointF position, Color color)
    Parameters
    Type Name Description
    System.String filename

    Full path to location of the CustomSprite on the disc.

    System.Drawing.SizeF size

    Set the Size of the CustomSprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the CustomSprite.

    System.Drawing.Color color

    Set the Color used to draw the CustomSprite.

    Exceptions
    Type Condition
    System.IO.FileNotFoundException

    Thrown if the specified file doesn't exist

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

    Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.

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

    Full path to location of the CustomSprite on the disc.

    System.Drawing.SizeF size

    Set the Size of the CustomSprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the CustomSprite.

    System.Drawing.Color color

    Set the Color used to draw the CustomSprite.

    System.Single rotation

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

    Exceptions
    Type Condition
    System.IO.FileNotFoundException

    Thrown if the specified file doesn't exist

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

    Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.

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

    Full path to location of the CustomSprite on the disc.

    System.Drawing.SizeF size

    Set the Size of the CustomSprite.

    System.Drawing.PointF position

    Set the Position on screen where to draw the CustomSprite.

    System.Drawing.Color color

    Set the Color used to draw the CustomSprite.

    System.Single rotation

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

    System.Boolean centered

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

    Exceptions
    Type Condition
    System.IO.FileNotFoundException

    Thrown if the specified file doesn't exist

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