SKCanvas.DrawBitmapNinePatch 方法

定義

多載

名稱 Description
DrawBitmapNinePatch(SKBitmap, SKRectI, SKRect, SKFilterMode, SKPaint)

使用指定的濾波器模式,使用九個音色尺度繪製點陣圖。

DrawBitmapNinePatch(SKBitmap, SKRectI, SKRect, SKPaint)

繪製點陣圖,並以不同方式拉伸或縮小,以符合目的地矩形。

DrawBitmapNinePatch(SKBitmap, SKRectI, SKRect, SKFilterMode, SKPaint)

使用指定的濾波器模式,使用九個音色尺度繪製點陣圖。

public void DrawBitmapNinePatch(SkiaSharp.SKBitmap bitmap, SkiaSharp.SKRectI center, SkiaSharp.SKRect dst, SkiaSharp.SKFilterMode filterMode, SkiaSharp.SKPaint paint = default);

參數

bitmap
SKBitmap

要畫點陣圖。

center
SKRectI

中間未縮放的矩形。

dst
SKRect

要畫進去的目的地矩形。

filterMode
SKFilterMode

篩選模式用於縮放。

paint
SKPaint

繪製點陣圖時使用的塗料,或 null。

適用於

DrawBitmapNinePatch(SKBitmap, SKRectI, SKRect, SKPaint)

繪製點陣圖,並以不同方式拉伸或縮小,以符合目的地矩形。

public void DrawBitmapNinePatch(SkiaSharp.SKBitmap bitmap, SkiaSharp.SKRectI center, SkiaSharp.SKRect dst, SkiaSharp.SKPaint paint = default);

參數

bitmap
SKBitmap

要畫點陣圖。

center
SKRectI

點陣圖的中心區域,用來邏輯地將點陣圖劃分為 9 個區段(3x3)。

dst
SKRect

要畫點陣圖的區域。

paint
SKPaint

繪製點陣圖時要用的顏料。

適用於