DrawShapedSprite /Drawing

void DrawShapedSprite(string spriteName, vector2 pos, vector2 size, uint color = 0xFFFFFFFF, float angle = 0.0f)

Draws a sprite at position pos and with size dimensions. If size differs from the original sprite frame size, it will be stretched to fit the requested dimensions in pixels.

Optionally, a custom color value may be used. The default color is white (0xFFFFFFFF), which conserves original bitmap colors.

Sample:

void onSceneUpdate()
{
    const uint WHITE = 0xFFFFFFFF;

    // adjusts the original bitmap to a 100x20 pixels area
    DrawShapedSprite("any_bitmap_file.png", vector2(0,0), vector2(100,20), WHITE);
}