DrawText(point.X, point.Y, halfWidth, drawingContext, _watermarkText);
point = RotatePoint(2.5...);
point = RotatePoint(4.5, 2.5, n, rt, rect, margin);
DrawText(point.X, point.Y...watermarkText));
完整MainWindow.xaml代码:
<Window x:Class="WPF水印装饰器.MainWindow"
xmlns="http://schemas.<em>microsoft</em>.com.../winfx/2006/xaml/presentation"
xmlns:x="http://schemas.<em>microsoft</em>.com/winfx/2006/xaml"...xmlns:d="http://schemas.<em>microsoft</em>.com/expression/<em>blend</em>/2008"
xmlns:mc="http://schemas.openxmlformats.org