alpha

bootstrap弹框去除遮罩层效果

假如想象 提交于 2019-11-29 02:38:55
是通过css解决这个问题,核心css代码如下: .modal-backdrop { filter: alpha(opacity=0)!important; opacity: 0!important; } alpha和opacity通常是决定透明度。 alpha和opacity区别是什么? 相同点: 都是值为0表示完全透明,值为1表示完全不透明。 不同点: alpha可以应用元素特定的属性,只能作用于当前元素,其子元素不能继承,而opacity不仅仅作用于当前元素,也会影响子元素及其子子元素,具有继承性。 来源: https://www.cnblogs.com/youcong/p/11440604.html

Alpha masking in c# System.Drawing?

旧巷老猫 提交于 2019-11-28 19:06:27
问题 I'm trying to draw an image, with a source Bitmap and an alpha mask Bitmap , using the System.Drawing.Graphics object. At the moment I loop X and Y and use GetPixel and SetPixel to write the source color and mask alpha to a third Bitmap , and then render that. However this is very inefficient and I am wondering if there is an faster way to achieve this? The effect I'm after looks like this: The grid pattern represents transparency; you probably knew that. 回答1: Yes, the faster way to do this

Individual alpha values in scatter plot

前提是你 提交于 2019-11-28 18:47:27
问题 I'm wondering if it is possible to have individual alpha values for each point to be plotted using the scatter function of Matplotlib. I need to plot a set of points, each one with its alpha value. For example, I have this code to plot some points def plot_singularities(points_x, p, alpha_point, file_path): plt.figure() plt.scatter(points_x, points_y, alpha=alpha_point) plt.savefig(file_path + '.png', dpi=100) plt.close() All my points_x , points_y and alpha_point have n values. However, I

How to use alpha transparency in OpenGL?

隐身守侯 提交于 2019-11-28 18:41:09
Here's my code: void display(void); int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGBA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable( GL_BLEND ); glutInitWindowSize(600,600); glutInitWindowPosition(200,50); glutCreateWindow("glut test"); glutDisplayFunc(display); glutMainLoop(); return 0; } void display() { glClear(GL_COLOR_BUFFER_BIT); glPointSize(8); glBegin(GL_POINTS); glColor4f(.23,.78,.32,1.0); glVertex2f(0,0); glColor4f(.23,.78,.32,0.1); glVertex2f(0.1,0); glEnd(); glFlush(); } The problem is that these two points appear

How to implement alpha gradient on a image?

喜夏-厌秋 提交于 2019-11-28 17:58:40
I want to implement alpha gradient on an image. From 0.5 alfa on top of the image to 0.0 on bottom. Any advice, tutorial, link is welcome. You can use CGImageCreateWithMask to apply a masking image to it. You could generate an appropriate mask simply enough by drawing to a greyscale or alpha-only CGBitmapContext with CGContextDrawLinearGradient . If it's being displayed as the content of a CALayer, you could apply an appropriate masking layer to the parent layer's mask property. You could use a CAGradientLayer with appropriate colors to create this mask. You can draw the image to a

Remove alpha channel in an image

六眼飞鱼酱① 提交于 2019-11-28 17:21:59
I have an app icon for iOS but Apple doesn't allow alpha to be in the image. How to remove this alpha channel? I only have the png image with me I don't have the source file as my friend did the image for me. Assuming you don't have another image editor, then you can open it in Preview on your Mac, and use the Export option to resave it in a different format- to ensure you get rid of the alpha channel, it might be best to export to JPG (best quality), then open that and export it as a PNG again. Having said that, I suspect you're probably OK submitting an icon with a transparency channel as

iPhone: Changing CGImageAlphaInfo of CGImage

淺唱寂寞╮ 提交于 2019-11-28 17:16:01
I have a PNG image that has an unsupported bitmap graphics context pixel format. Whenever I attempt to resize the image, CGBitmapContextCreate() chokes on the unsupported format I receive the following error (error formatted for easy reading): CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component colorspace; kCGImageAlphaLast; 1344 bytes/row. The list of supported pixel formats definitely does not support this combination. It appears I need to redraw the image and move the alpha channel information to kCGImageAlphaPremultipliedFirst or

Detect Alpha Channel with ImageMagick

元气小坏坏 提交于 2019-11-28 16:29:50
问题 Scenario I would like to save images with alpha transparency as .png and images without alpha transparency as .jpg (even if their original format is .png or .gif ). How can I detect whether or not an image has alpha transparency using ImageMagick? 回答1: The ImageMagik command: identify -format '%[channels]' foo.png will print rgba or rgb if there is or is not an alpha channel, respectively. There could be an alpha channel present with no data in it which wouldn't actually have any transparency

关于三角函数级数的一个重要结论+和差化积+积化和差

[亡魂溺海] 提交于 2019-11-28 15:17:10
文章目录 部分和有界 证明 结论 一个例题 解 补充:积化和差 补充:和差化积 部分和有界 证明: ∑ sin ⁡ n x \sum\sin nx ∑ sin n x 和 ∑ cos ⁡ n x \sum\cos nx ∑ cos n x 的部分和有界 ( x ∈ ( 0 , 2 π ) ) (x\in(0,2\pi)) ( x ∈ ( 0 , 2 π ) ) 证明 这个证明的技巧性太强了 直接骚操作 2 sin ⁡ x 2 ( 1 2 + ∑ k = 1 n cos ⁡ k x ) 2\sin\frac x2(\frac12+\sum\limits_{k=1}^n\cos kx) 2 sin 2 x ​ ( 2 1 ​ + k = 1 ∑ n ​ cos k x ) = sin ⁡ x 2 + ( sin ⁡ 3 2 x − sin ⁡ x 2 ) + . . . =\sin\frac x2+(\sin\frac32x-\sin\frac x2)+... = sin 2 x ​ + ( sin 2 3 ​ x − sin 2 x ​ ) + . . . . . . + [ sin ⁡ ( n + 1 2 ) x − sin ⁡ ( n − 1 2 ) x ] ...+[\sin(n+\frac12)x-\sin(n-\frac12)x] . . . + [ sin ( n + 2

Can I have image alpha fade from left to right in java?

感情迁移 提交于 2019-11-28 11:51:32
I am making a game and want to have a single image 'fade' from left to right with the left part of the image having an alpha of 1.0 and the right having an alpha of 0.0. (note: I do not want it to be changing what it looks like over time, like fading in or out, but just fading from left to right and staying constant). An attempt to draw what I want the end result to look like is below: lll lll ll ll l l l l l lll lll ll ll l l l l l lll lll ll ll l l l l l lll lll ll ll l l l l l lll lll ll ll l l l l l lll lll ll ll l l l l l Where the densities of the 'l's represent the alpha I am currently