DrawTextureNPatch method
void
DrawTextureNPatch(
- TextureD texture,
- NPatchInfoD nPatchInfo,
- RectangleD dest,
- Vector2D origin,
- num rotation,
- 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,
),
);