opacity

WinForm Control with Opacity

只愿长相守 提交于 2019-12-05 05:25:32
I have a form that has some controls on itself(btnCreateReport,pnlDarkLayer).I have a panel that fit to form(Dock = Fill) and it is on the back of all controls.when user click on the btnCreateReport button ,I call pnlDarkLayer BringToFront method and after some calculation I call SendToBack() method of the button.I want to draw a dark layer on form controls and disable all of controls on the form. Is it possible? Thanks. Maybe this code help u to understand my purpose: private void btnCreateReport_Click(object sender, EventArgs e) { pnlDarkLayer.BackColor = Color.FromArgb(100, Color.Gray);

How to set background opacity of a textview placed on to of ImageView

落花浮王杯 提交于 2019-12-05 04:54:30
I would like to achieve the following result where there is a transparent background over the name.: So far this is what i have done (ignore the black border surrounding the image): i would like to have a transparent background (actually a colored background with its opacity adjusted). Here is the XML code i have been using: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:padding="5dp"> <ImageView android:id="@

Make jquery function run on page load

拜拜、爱过 提交于 2019-12-04 23:08:35
I have a jquery function to change the opacity of an image on mouse hover to produce a pulsating effect, but I would like to change it so that the image pulsates as soon as the page loads, removing the mouse hover elements mouse over and mouse out. Here is the code I have (function($) { $(document).ready(function() { window.pulse_image = null; window.pulse_continue_loop = false; $('.pulse_image').mouseover(function() { // User is hovering over the image. window.pulse_continue_loop = true; window.pulse_image = $(this); PulseAnimation(); // start the loop }).mouseout(function() { window.pulse

Surplus in ie7 and ie8 intead of being Transparent while using PNG transparent and opacity

依然范特西╮ 提交于 2019-12-04 16:32:20
I am developing a project that uses the PNG transparent and Opacity but, the area has a surplus in IE7 and IE8 instead of being transparent, it is black, can someone help me? print of area Thanks I have a solution for this, have used on multiple sites before. Simply run this function after your html content has been written to the page: function fixPNGs(){ if(jQuery.browser.msie && jQuery.browser.version < 9){ var i; //alert(document.images.length); for(i in document.images){ if(document.images[i].src){ var imgSrc = document.images[i].src; if(imgSrc.substr(imgSrc.length-4) === '.png' || imgSrc

On scroll change opacity of header?

↘锁芯ラ 提交于 2019-12-04 15:10:41
问题 Im so new to JQuery and im sure the answer is super basic. But if someone can point me in the right direction that would be great. I just want the opacity of my header to change from 0 to 1 as the user scrolls past 400 pixels. HELP? www.HULU.com has a perfect example. <code> <script> $(document).ready(function() { $(window).scroll(function() { if ($(this).scrollTop() > 400) { $('.header').css("background", "#000"); } else { $('.header').css("background", "transparent"); } }); }); </script> <

Changing Bootstrap's navbar opacity without affecting the buttons

限于喜欢 提交于 2019-12-04 13:48:38
问题 I only want my navbar buttons to be visible, while the actual bar that spans across the entire page has full opacity. Whenever I change the opacity of the navbar it affects the classes inside of it, even when I specify those classes to have no opacity. I've posted an image of what I'm trying to replicate. As you can see, the links appear in full, but the navbar is invisible, allowing the complete background image to show. It might look like a solid red bar, but I assure you it's an invisible

DrawingContext.DrawLine: Pen has no full opacity?

和自甴很熟 提交于 2019-12-04 10:09:48
when I draw something like that (just random drawings here): public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DrawingVisual visual = new DrawingVisual(); DrawingContext context = visual.RenderOpen(); Pen pen = new Pen(Brushes.Black, 1); context.DrawEllipse(Brushes.YellowGreen, pen, new Point(0,0), 40, 40); for (int i = 0; i <= 100 - 1; i++) context.DrawLine(new Pen(Brushes.Black, 1), new Point(0, i), new Point(i, i)); context.Close(); RenderTargetBitmap bmp = new RenderTargetBitmap(100, 100, 96, 96, PixelFormats.Pbgra32); bmp.Render(visual); image1.Source

How to make a Texture2D 50% transparent? XNA

爱⌒轻易说出口 提交于 2019-12-04 08:57:36
问题 I'm using SpriteBatch to draw a Texture2D on the screen and was wondering how I could manipulate the the images opacity? Anyone know the best way in accomplishing this? 回答1: Assuming you are using XNA 4.0 with premultiplied alpha. In your spritebatch.draw multiply the color by a float, 0.5f for 50% transparency, and draw as you would normally. If you are not using premultiplied alpha I suggest you do for performance reasons and its more intuitive after you get used to it. Example:

How do I set the opacity of a vertex in OpenGL?

混江龙づ霸主 提交于 2019-12-04 08:26:40
The following snippet draws a gray square. glColor3b(50, 50, 50); glBegin(GL_QUADS); glVertex3f(-1.0, +1.0, 0.0); // top left glVertex3f(-1.0, -1.0, 0.0); // bottom left glVertex3f(+1.0, -1.0, 0.0); // bottom right glVertex3f(+1.0, +1.0, 0.0); // top right glEnd(); In my application, behind this single square exists a colored cube. What function should I use to make square (and only this square) opaque? In the init function, use these two lines: glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); And in your render function, ensure that glColor4f is used instead of glColor3f

Opacity of Buttons/TextBoxes - VB.NET

这一生的挚爱 提交于 2019-12-04 07:33:40
Is it possible to set the opacity of a button or textbox? I know that you can set the opacity for a form, but I'm not so sure about a button or textbox. There is no way to set the opacity of any control in WinForms. Only Forms have the opacity property. If you want to make any control appear semi-transparent, you'll have to implement the whole control from scratch and that will most likely involve drawing the control as an image onto its parent. Your alternative is to use WPF, which allows setting the opacity of controls. No, opacity is not a button property, it's inherited from whatever the