Image.viewportSize

  1. Vector2 viewportSize()
  2. Vector2 viewportSize(Vector2 dpi)
    struct Image
    const pure nothrow
    viewportSize

Parameters

dpi Vector2

DPI of the canvas.

Return Value

Type: Vector2

Size of the image in pixels (not dots). This is the space the image will occupy in the viewport.

Meta