Exemple #1
0
 public static Brush AsMediaBrushTiled(this InkedPattern pattern) =>
 new ImageBrush(pattern.AsBitmapSource())
 {
     TileMode      = TileMode.Tile,
     Stretch       = Stretch.None,
     AlignmentX    = AlignmentX.Left,
     AlignmentY    = AlignmentY.Top,
     ViewportUnits = BrushMappingMode.Absolute,
     Viewport      = new Rect(0, 0, pattern.Width, pattern.Height)
 };
Exemple #2
0
 public static Brush AsMediaBrush(this InkedPattern pattern) =>
 new ImageBrush(pattern.AsBitmapSource());