opacity

Winforms C# Gradient Opacity bitmap

孤街浪徒 提交于 2019-12-24 12:26:10
问题 I want to make a bitmap that has a linear opacity applied. (i.e. it is more opaque on the left side and get progressively less opaque as it approaches the right.) Is this possible? I know its possible to have a constant opacity level. 回答1: I know its possible to have a constant opacity level So don't make it constant, LinearGradientBrush has no trouble interpolating the alpha value. A simple demonstration of a form that has the BackgroundImage set: protected override void OnPaint

CSS3 or jQuery animation with given step

試著忘記壹切 提交于 2019-12-24 09:49:41
问题 I have a CSS that makes fading out effect. #mainframe.normal { opacity: 1.0; } #mainframe.faded { opacity: 0.0; } #mainframe { /* Firefox */ -moz-transition-property: opacity; -moz-transition-duration: 3s; /* WebKit */ -webkit-transition-property: opacity; -webkit-transition-duration: 3s; /* Standard */ transition-property: opacity; transition-duration: 3s; } It is controlled by the following script: document.getElementById('mainframe').className = "faded"; Unfortunately, there is no

Opacity !important doesn't work

廉价感情. 提交于 2019-12-24 08:49:18
问题 Here is my code: <tr style="opacity: 0.5;"><td><img style="opacity: 1.0 !important;" src="/img/crap.png"/><div>Some text, etc...</td></tr> I wan't the image to be showed with full opacity, and rest should be only 50% opacity, I've tried also with !important attribute, but it doesn't work. I've tried also to move that styles to the class in the css file. Image always has 50% of opacity. How can I resolve this? 回答1: There's an existing question about the same problem with yours. The link is

SVG linear gradient fill with opacity gradient

半腔热情 提交于 2019-12-24 08:17:15
问题 I've been reading the SVG specification and trying to find out whether you can have a combined fill and opacity gradient, but with the fill and opacity at different angles? See the following example: <linearGradient id="MyFill" gradientUnits="objectBoundingBox"> <stop offset="0%" stop-color="#FF0000" /> <stop offset="100%" stop-color="#0000FF" /> </linearGradient> <linearGradient id="MyTransparency" gradientUnits="objectBoundingBox"> <stop offset="0%" stop-opacity="0%" x1="50%" x2="50%" />

How to change only the background image opacity? [duplicate]

六眼飞鱼酱① 提交于 2019-12-24 08:04:11
问题 This question already has answers here : How do I give text or an image a transparent background using CSS? (28 answers) Can I set an opacity only to the background image of a div? (8 answers) Set opacity of background image without affecting child elements (14 answers) Closed last year . I am trying to change the opacity of my background image to make it match the website. The problem is that the opacity: 0.5; change everything within the element. So not only the background image change but

CSS 3 Opacity for List but not text [duplicate]

折月煮酒 提交于 2019-12-24 07:12:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Opacity of background, but not the text I have a HTML unordered list. I need the background to have an opacity of "0.3". But I don't want this opacity applied to the text. Here is my current CSS; it renders the text as having an opacity of 0.3 as well: li { background-color:pink; opacity: 0.3; } a { color: white; opacity: 1.0; } How do make the link text render white? 回答1: You'll have to use another way to set

.points opacity / size within three.js

…衆ロ難τιáo~ 提交于 2019-12-24 06:21:56
问题 I'm back for question two on .points. This time wondering how to change the opacity from 0, to 1 and then back within certain pixel distances from the emitter. var particleCount = 14, particles = new THREE.Geometry(), pMaterial = new THREE.PointsMaterial({ map: new THREE.TextureLoader().load("x.png"), blending: THREE.multiplyBlending, flatShading: true, size: 40, transparent: true, depthTest: true, sizeAttenuation: true, opacity: 1 }); var particleSystem; My main confusion is that even though

Make text transparent in Shoes.app

。_饼干妹妹 提交于 2019-12-24 02:13:26
问题 Is there a way in Shoes to have text show up transparent? I have: Shoes.app{ para "Text", :stroke => rgb(1.0,0.0,0.0,0.5), :size => 100 } But it's just showing up 100% red. I know opacity works for fill, does it also work for stroke? (I am developing with Shoes Raisins Revision 1134 on Mac OS X 10.4.11) Thanks in advance 回答1: Alpha works on both stroke and fill, but not for text. For example, this code will draw a 50% transparent blue circle over the text: Shoes.app do para "Text", :stroke =>

Blending images in java

与世无争的帅哥 提交于 2019-12-23 22:27:56
问题 Well I've got my game engine running smoothly, and perfectly on all machines! Before I continue adding functionality to the engine, I want to enhance the engine's graphical capabilities. The one I'm focused on is fading and blending images. I'm going to need some smooth transitions, so without using any 3rd party libraries like OpenGL, how does one apply opacity to images when drawing to a graphics object? thanks for any replies :D 回答1: Perhaps using an AlphaComposite could be what you're

Images with opacity “jumping” on hover in Firefox

房东的猫 提交于 2019-12-23 21:29:40
问题 I have an image which I've faded out using opacity css. The opacity of the image returns to 1 when hovered. However, in Firefox, it appears to "jump" a little when hovered over. It seems to be something to do with the way Firefox smooths the image while faded - is there a way around this? Here's a fiddle: http://jsfiddle.net/jngS8/5/ <div class="container"> <a class="opacity"> <img src="http://imgur.com/EhiSptf.png" /> </a> </div> CSS: img { height: auto; max-width: 100%; } .container{ width