|
|
@@ -110,7 +110,7 @@ namespace Avalonia.Skia
|
|
|
}
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
- public void DrawImage(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode)
|
|
|
+ public void DrawBitmap(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode)
|
|
|
{
|
|
|
var drawableImage = (IDrawableBitmapImpl)source.Item;
|
|
|
var s = sourceRect.ToSKRect();
|
|
|
@@ -146,10 +146,10 @@ namespace Avalonia.Skia
|
|
|
}
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
- public void DrawImage(IRef<IBitmapImpl> source, IBrush opacityMask, Rect opacityMaskRect, Rect destRect)
|
|
|
+ public void DrawBitmap(IRef<IBitmapImpl> source, IBrush opacityMask, Rect opacityMaskRect, Rect destRect)
|
|
|
{
|
|
|
PushOpacityMask(opacityMask, opacityMaskRect);
|
|
|
- DrawImage(source, 1, new Rect(0, 0, source.Item.PixelSize.Width, source.Item.PixelSize.Height), destRect, BitmapInterpolationMode.Default);
|
|
|
+ DrawBitmap(source, 1, new Rect(0, 0, source.Item.PixelSize.Width, source.Item.PixelSize.Height), destRect, BitmapInterpolationMode.Default);
|
|
|
PopOpacityMask();
|
|
|
}
|
|
|
|
|
|
@@ -437,7 +437,7 @@ namespace Avalonia.Skia
|
|
|
context.Clear(Colors.Transparent);
|
|
|
context.PushClip(calc.IntermediateClip);
|
|
|
context.Transform = calc.IntermediateTransform;
|
|
|
- context.DrawImage(
|
|
|
+ context.DrawBitmap(
|
|
|
RefCountable.CreateUnownedNotClonable(tileBrushImage),
|
|
|
1,
|
|
|
sourceRect,
|