DrawableImage.drawHinted

Draw the image.

draw is the usual method, which enables scaling and filtering, likely making it preferable for most images. However, for images that have been generated (like text) or adjusted to display on the user's screen (like icons), drawHinted may be preferrable.

  1. void drawHinted(Rectangle destination, Color tint)
    struct DrawableImage
    nothrow
    void
    drawHinted
    (,
    Color tint = Color(0xff, 0xff, 0xff, 0xff)
    )
  2. void drawHinted(Vector2 destination, Color tint)

Parameters

destination Rectangle

Place in the canvas to draw the texture to. If a rectangle is given, the image will stretch to fix this box.

tint Color

Color to multiply the image by. Can be used to reduce opacity, darken or change color. Defaults to white (no change).

See Also

CanvasIO.drawImage, CanvasIO.drawHintedImage

Meta