DrawTextureNPatch method

void DrawTextureNPatch(
  1. Texture texture,
  2. NPatchInfo nPatchInfo,
  3. Rectangle dest,
  4. Vector2 origin,
  5. num rotation,
  6. Color tint,
)

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

Implementation

void DrawTextureNPatch(
  Texture texture,
  NPatchInfo nPatchInfo,
  Rectangle dest,
  Vector2 origin,
  num rotation,
  Color tint,
) => run(
  () => _debugLabels.DrawTextureNPatch(texture, nPatchInfo, dest, origin, rotation, tint),
  () => _flat.DrawTextureNPatch(
    texture,
    nPatchInfo,
    dest,
    origin,
    rotation.toDouble(),
    tint,
  ),
);