DrawTextureNPatch method

void DrawTextureNPatch(
  1. TextureD texture,
  2. NPatchInfoD nPatchInfo,
  3. RectangleD dest,
  4. Vector2D origin,
  5. num rotation,
  6. ColorD tint,
)

Draws a texture (or part of it) that stretches or shrinks nicely

Implementation

void DrawTextureNPatch(
  TextureD texture,
  NPatchInfoD nPatchInfo,
  RectangleD dest,
  Vector2D origin,
  num rotation,
  ColorD tint,
) => run(
  () => _debugLabels.DrawTextureNPatch(texture, nPatchInfo, dest, origin, rotation, tint),
  () => _flat.DrawTextureNPatch(
    texture,
    nPatchInfo,
    dest,
    origin,
    rotation.toDouble(),
    tint,
  ),
);