Exemplo n.º 1
0
		public Rotate3DTool()
			: base(SR.TooltipRotate3D)
		{
			CursorToken = new CursorToken("Icons.Rotate3DToolSmall.png", GetType().Assembly);
			_operation = new SpatialTransform3DImageOperation(Apply);

			const string graphicName = "Icons.NoSpineLabeling.png";
			var iconSet = new UnavailableActionIconSet(new IconSet("Icons.Rotate3DToolSmall.png", "Icons.Rotate3DToolMedium.png", "Icons.Rotate3DToolLarge.png"));
			var resolver = new ApplicationThemeResourceResolver(GetType(), false);
			_flashOverlayController = new FlashOverlayController(iconSet, resolver) {FlashSpeed = 1500};
		}
Exemplo n.º 2
0
            public FlashOverlayGraphic(FlashOverlayController controller, string message)
            {
                Controller = controller;

                Graphics.Add(new ColorImageGraphic(_rows = controller.Rows, _columns = controller.Columns, controller.GetPixelData));

                if (!string.IsNullOrWhiteSpace(message))
                {
                    const int vOffset = 25;                     // fixed offset because we currently don't have a way to measure text size until after rendering once...
                    Graphics.Add(new InvariantTextPrimitive(message)
                    {
                        Location     = new PointF(_columns / 2f, _rows + vOffset),
                        Color        = Color.WhiteSmoke,
                        SizeInPoints = 20
                    });
                }
            }
Exemplo n.º 3
0
		public KeyImageTool()
		{
			_flashOverlayController = new FlashOverlayController("Icons.CreateKeyImageToolLarge.png", new ApplicationThemeResourceResolver(GetType(), false));
		}