コード例 #1
0
        static Wcd.Mgcg.CanvasFilledRegionDetermination FilledRegionDetermination(Win2D.CanvasFilledRegionDetermination fillType)
        {
            switch (fillType)
            {
            case Win2D.CanvasFilledRegionDetermination.Alternate:
                return(Wcd.Mgcg.CanvasFilledRegionDetermination.Alternate);

            case Win2D.CanvasFilledRegionDetermination.Winding:
                return(Wcd.Mgcg.CanvasFilledRegionDetermination.Winding);

            default:
                throw new InvalidOperationException();
            }
        }
コード例 #2
0
 void Win2D.ICanvasPathReceiver.SetFilledRegionDetermination(Win2D.CanvasFilledRegionDetermination filledRegionDetermination)
 {
     _builder.SetFilledRegionDetermination(FilledRegionDetermination(filledRegionDetermination));
 }