Beispiel #1
0
        public static PixelShiftType ToPixelShiftType(this PixelShift pixelShift)
        {
            switch (pixelShift)
            {
            case PixelShift.TopLeft2X2Pixels:

                return(PixelShiftType.TopLeft2X2Pixels);

            case PixelShift.BottomRight2X2Pixels:

                return(PixelShiftType.BottomRight2X2Pixels);

            default:

                return(PixelShiftType.NoPixelShift);
            }
        }
 public GridTopologyDisplay ToGridTopologyDisplay()
 {
     return(new GridTopologyDisplay(DisplayId, new Overlap(Overlap.X, Overlap.Y), Rotation.ToRotate(), 0,
                                    PixelShift.ToPixelShiftType()));
 }