Esempio n. 1
0
        /// <summary>
        /// Show demo image for application location.
        /// </summary>
        /// <param name="location">location of application on screen</param>
        private void ShowPictureDemo(LocationType location)
        {
            float opacity = trackBarOpacity.Value / 100f;

            currentLocation                       = location;
            picDemoLeftBottom.Visible             = (location == LocationType.BottomLeft);
            picDemoLeftTop.Visible                = (location == LocationType.TopLeft);
            picDemoRightBottom.Visible            = (location == LocationType.BottonRight);
            picDemoRightTop.Visible               = (location == LocationType.TopRight);
            listPictureBox[currentLocation].Image = ImageOpacity.SetImgOpacity(imageDemo, opacity);
        }
Esempio n. 2
0
        /// <summary>
        /// Scroll handle on trackBarOpacity
        /// </summary>
        /// <param name="sender">source</param>
        /// <param name="e">event</param>
        private void TrackBarOpacity_Scroll(object sender, EventArgs e)
        {
            btnApply.Enabled = true;

            tbxOpacityValue.Text = trackBarOpacity.Value.ToString() + "%";


            float opacity = trackBarOpacity.Value / 100f;

            listPictureBox[currentLocation].Image = ImageOpacity.SetImgOpacity(imageDemo, opacity);
        }