Browse Source

Implement drawing opacity masked bitmap on skia.

scenegraph-after-breakage
Steven Kirk 10 years ago
parent
commit
4907841e75
  1. 4
      src/Skia/Avalonia.Skia/DrawingContextImpl.cs

4
src/Skia/Avalonia.Skia/DrawingContextImpl.cs

@ -46,7 +46,9 @@ namespace Avalonia.Skia
public void DrawImage(IBitmapImpl source, IBrush opacityMask, Rect opacityMaskRect, Rect destRect)
{
throw new NotImplementedException();
PushOpacityMask(opacityMask, opacityMaskRect);
DrawImage(source, 1, new Rect(0, 0, source.PixelWidth, source.PixelHeight), destRect);
PopOpacityMask();
}
public void DrawLine(Pen pen, Point p1, Point p2)

Loading…
Cancel
Save