Пример #1
0
        internal awt.Shape GetOutline(float x, float y)
        {
            geom.AffineTransform t = (geom.AffineTransform)_lineIter.Transform.clone();

            if (_lineIter.Format.IsVertical)
            {
                t.translate(y + NativeY, -(x + NativeX));
            }
            else
            {
                t.translate(x + NativeX, y + NativeY);
            }

            return(_layout.getOutline(t));
        }
        public Matrix(RectangleF rect, PointF[] plgpts)
        {
            double x1 = plgpts[1].X - plgpts[0].X;
            double y1 = plgpts[1].Y - plgpts[0].Y;

            double x2 = plgpts[2].X - plgpts[0].X;
            double y2 = plgpts[2].Y - plgpts[0].Y;

            _nativeMatrix = new geom.AffineTransform(x1 / rect.Width, y1 / rect.Width, x2 / rect.Height, y2 / rect.Height, plgpts[0].X, plgpts[0].Y);
            _nativeMatrix.translate(-rect.X, -rect.Y);
        }
Пример #3
0
		public Matrix (RectangleF rect , PointF[] plgpts)
		{
			double x1 = plgpts[1].X - plgpts[0].X;
			double y1 = plgpts[1].Y - plgpts[0].Y;
			
			double x2 = plgpts[2].X - plgpts[0].X;
			double y2 = plgpts[2].Y - plgpts[0].Y;

			_nativeMatrix = new geom.AffineTransform(x1/rect.Width, y1/rect.Width, x2/rect.Height, y2/rect.Height, plgpts[0].X, plgpts[0].Y);
			_nativeMatrix.translate(-rect.X,-rect.Y);
		}