예제 #1
0
        public void CenterPartInView()
        {
            RectangleDouble partBounds     = loadedGCode.GetBounds();
            Vector2         weightedCenter = loadedGCode.GetWeightedCenter();

            unscaledRenderOffset = -weightedCenter;
            layerScale           = Math.Min(Height / partBounds.Height, Width / partBounds.Width);

            Invalidate();
        }
예제 #2
0
 public override RectangleDouble GetBounds()
 {
     return(source.GetBounds());
 }