Пример #1
0
            public void Apply(GraphicsHandler graphics)
            {
                graphics.SetFillColorSpace();

                                #if OSX
                graphics.SetPhase();
                                #endif

                // make current transform apply to the pattern
                var currentTransform = graphics.CurrentTransform;
                if (pattern == null || viewTransform != currentTransform)
                {
                    viewTransform = currentTransform;
                    SetPattern();
                }

                graphics.Control.SetFillPattern(pattern, alpha);
            }
Пример #2
0
            public void Apply(GraphicsHandler graphics)
            {
                graphics.SetFillColorSpace();

                                #if OSX
                if (graphics.DisplayView != null)
                {
                    // adjust for position of the current view relative to the window
                    var pos = graphics.DisplayView.ConvertPointToView(sd.PointF.Empty, null);
                    graphics.Control.SetPatternPhase(new sd.SizeF(pos.X, pos.Y));
                }
                                #endif

                // make current transform apply to the pattern
                var currentTransform = graphics.CurrentTransform;
                if (pattern == null || viewTransform != currentTransform)
                {
                    viewTransform = currentTransform;
                    SetPattern();
                }

                graphics.Control.SetFillPattern(pattern, alpha);
            }
Пример #3
0
			public void Apply(GraphicsHandler graphics)
			{
				graphics.SetFillColorSpace();

				#if OSX
				if (graphics.DisplayView != null)
				{
					// adjust for position of the current view relative to the window
					var pos = graphics.DisplayView.ConvertPointToView(sd.PointF.Empty, null);
					graphics.Control.SetPatternPhase(new sd.SizeF(pos.X, pos.Y));
				}
				#endif

				// make current transform apply to the pattern
				var currentTransform = graphics.CurrentTransform;
				if (pattern == null || viewTransform != currentTransform)
				{
					viewTransform = currentTransform;
					SetPattern();
				}

				graphics.Control.SetFillPattern(pattern, alpha);
			}