Use a translucent picture to make a background
Use Colorwithwhite:alpha: white The parameter after the method represents the grayscale, from 0-1 to the black to white change, alpha is the transparency you want to adjust
bgView.backgroundColor = [UIColor colorWithWhite:0.f alpha:0.5]; 3 Setting the background in Xib or storyboard
Translucent background xib settings. pngBy adjusting the transp
Format:Android:background= "#XXxxxxxx" (colors can be written in color)Description: The translucent color value differs from the usual color, the semitransparent color value is 8 bits, the first 2 bits is the transparency, the last 6 bits are the color.In other words, transparency and color combine to write the transparency of various colors. The following is the transparency statement for your reference.
Not transparent
100%
F
recently, the Web page is being developed, the series of "Web development Notes" record myself in solving the web development process encountered problems and solutions .Translucent pages are used extensively in web development, especially in web apps, where this design is used more extensively, and this article records the development of this translucent page.Semi-transparent pages are commonly used for us
To give you illustrator software users to detailed analysis to share the performance vector translucent gradient tutorial.
Tutorial Sharing:
Adobe Illustrator (AI) is a favorite vector graphics software, but many beginners feel a lot of things are not easy to get started, such as this transparent gradient problem, in Photoshop can easily achieve transparent gradient, the following figure:
The AI does not have a tran
Win7 has a completely different visual effect, operators can operate various windows on the system, you can use the Aero Shake, Aero snap and other system-specific features, so as to enhance the efficiency of the operating system, many users like the new system translucent frosted effects, But when the concrete operation found the desktop translucent frosted effect disappeared, the desktop color into the ug
The keyboard appears in the hidden (solve the problem that the text box will be overwritten when the keyboard pops up, code implementation), the keyboard text box
Hide the keyboard (solve the problem that the text box will be overwritten when the keyboard pops up, and implem
. style. width = de. clientWidth + "px" mask. style. height = de. clientHeight + "px" ;}; // Add the show method mask. show = function () {// hide the page's scroll bar document [isIE
There is no difficulty in this effect. The most difficult part is the implementation of translucent. The opacity of CSS3 and the alpha of IE can both be translucent, but that is the tran
This article describes a simple example of the effect of a page translucent mask written in JavaScript, including a full-screen display of the div layer, if you want to know more about the effect of the translucent mask layer, you can use the plug-in to implement the effect of the translucent mask layer. Here we will share with you how to use native js to impleme
This article mainly introduces PHP using Imagecopymerge () function to create a translucent watermark, with a certain reference value, interested in small partners can refer to, hope to help everyone.
Use the Imagecopymerge () function to create a translucent watermark for everyone's reference, as follows
Translucent watermark:
This example uses the Imagecop
Shape use, gradient, split line, border, translucent, translucent shadow effect.Let's start with a quick look at the properties common in shape. (Refer to the API documentation for more information)Reprint Please specify: rflyee_: http://blog.csdn.net/rflyee/article/details/20785495Xmlns:android= "Http://schemas.android.com/apk/res/android"android:shape=["Rectangle" | "Oval" | "Line" | "Ring"] >---default t
It is not difficult to achieve the translucent effect through Div + CSS on the webpage. Today we will look at a method implemented in winfrom:
As follows:
When the mask layer is displayed:
The source code of the custom Mask Layer Control is as follows:
View code
Using System; Using System. drawing; Using System. Windows. forms; Using System. componentmodel; Namespace Myopaquelayer { /// /// Custom Control:
Option Explicit
''' Window translucent Declaration startsPrivate Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPrivate Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As
This article demonstrates how to implement an intermediate customer zone that imitates the QQ interface. QQ can adjust the transparency of the interface, but the transparency has become translucent even in the middle customer area. After all, the customer zone is the most important part of the software and must interact with users. Transparency affects operations. Therefore, the customer zone here does not learn QQ and is always opaque. To implement t
Js + CSS Implementation Method to bring up a translucent div layer with a center background
This article mainly introduces how to use javascript + CSS to pop up the center background translucent div layer. It involves the operation skills of javascript operations to pop up the div layer, which is very useful. For more information, see
This article describes how to use JavaScript + CSS to bring up a
The effects of GTK in directfb differ greatly from that in X11. Generally, you cannot use the method in X11 to make the window transparent. Therefore, after long-term research, GTK is finally enabled.
The window (gtkwindow) achieves a translucent effect under directfb. The fundamental principle of this method is to map the surface on the gtkwindow using gdkpixmap. method 1: In configure-event, allocate a gdkpixmap that matches the window and make it
This article demonstrates how to implement an intermediate customer zone that imitates the QQ interface. QQ can adjust the transparency of the interface, but the transparency has become translucent even in the middle customer area. After all, the customer zone is the most important part of the software and must interact with users. Transparency affects operations. Therefore, the customer zone here does not learn QQ and is always opaque. To implement t
Next, we introduce several PNG images in the IE6 opaque solution1, with their own PNG, let IE6 side to goThe first time you make a PNG image, save it as a GIF, because IE6 is a GIF image that supports transparency and then defines it in CSS. Pngtest { background:url (mark.png); _background:url (mark.gif);}Advantages: Convenient, fast, ultra-simple to useDisadvantage: The PNG image is only some local area transparent, this method is more effective, but if the picture is
The road from academic science is getting farther and farther away recently !!
What we want to summarize today is to implement a translucent mask effect. Click a button on the page to immediately display a part in the center of the screen, and the area outside the part is covered with a translucent mask. Click the mask area. The central part disappears and the page is restored to its original shape.
First,
Html/css the implementation of the transparency effect of the label, in HTML, the implementation of a semi-transparent background, in the HTML DIV+CSS programming, in order to achieve the version of transparency, usually there are 3 practices. The first is HTML5 transparent, support transparent background color in H5, but unfortunately, the transparent background color in H5 only supports the RGBA shampoo, does not support 16 binary notation such as: Background-color:rgba (0,152,50,0.7);//-->7
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.