示例#1
0
		public override void Render(IGraphicDevice device, float x, float y)
		{
			BoundingBox box = child.BoundingBox;
			Color oldColor = device.Color;
			device.Color = color;
			device.DrawFilledRectangle(y - box.Height, x, x + box.Width, y + box.Depth);
			device.Color = oldColor;
			child.Render(device, x, y);
		}	
示例#2
0
        public override void Render(IGraphicDevice device, float x, float y)
        {
            BoundingBox box      = child.BoundingBox;
            Color       oldColor = device.Color;

            device.Color = color;
            device.DrawFilledRectangle(y - box.Height, x, x + box.Width, y + box.Depth);
            device.Color = oldColor;
            child.Render(device, x, y);
        }
示例#3
0
        /**
         * render a filled rectangle with the current color that fills
         * the area of the child node. Note, the context is given with
         * coordinates at the origin of the bounding box, so we need to
         * calculate the extent of that rectangle here.
         */
        public override void Render(IGraphicDevice device, float x, float y)
        {
            BoundingBox box = child.BoundingBox;

            device.DrawFilledRectangle(y - box.Height, x, x + box.Width, y + box.Depth);
        }
示例#4
0
文件: InkArea.cs 项目: Altaxo/Altaxo
		/**
		 * render a filled rectangle with the current color that fills
		 * the area of the child node. Note, the context is given with
		 * coordinates at the origin of the bounding box, so we need to 
		 * calculate the extent of that rectangle here.
		 */
		public override void Render(IGraphicDevice device, float x, float y)
		{
			BoundingBox box = child.BoundingBox;
			device.DrawFilledRectangle(y - box.Height, x, x + box.Width, y + box.Depth);
		}