Watermark development in the front end of the project supports custom content, font size, font, tilt, transparency, left and right spacing, top and bottom spacing

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article directory Preface 1. Display effect 2. Usage steps 1. Create a new waterMark.js file 2. Introduce display on home page Summarize Foreword Product manager’s needs: Watermark […]

Modified version of Image component in Unity that ignores image transparency

Just add this component to an empty object in the canvas. Note that only simple image types are supported. using System.Collections.Generic; using UnityEngine; using UnityEngine.Sprites; using UnityEngine.UI; #if UNITY_2017_4 || UNITY_2018_2_OR_NEWER using UnityEngine.U2D; #endif #if UNITY_EDITOR using UnityEditor; // Custom Editor to order the variables in the Inspector similar to Image component [CustomEditor( typeof( PaddingIgnoringImage […]

Unity Shader transparency effect

There are two ways to achieve transparency effects in the game: 1. Transparency test As long as the transparency of a fragment does not meet the conditions (usually less than a certain threshold), the corresponding fragment is discarded. Discarded fragments will not undergo any processing and will not have any impact on the color buffer. […]

Qt sets form transparency

I. Introduction In audio development, most windows are translucent and rounded. The following is a summary of how to achieve translucency in Qt 5.5 VS2013. 2. Translucent method setting 1. The form and sub-controls are all set to semi-transparent 1) setWindowOpacity(0.8);//The parameter range is 0-1.0, and the transparency control bar is made through the QSlider […]

Qt desktop whiteboard tool part 2 (implementation method of highlighter and solving the problem of overlapping dark spots caused by transparency)

Previous article: One of the Qt desktop whiteboard tools (solve the problem of uneven curves – Bezier curve) 1. Foreword: I’m quite talkative and may talk a lot of nonsense. In the previous article, I mainly shared about the problem of non-smooth curves solved by the Bessel algorithm. Simply put, we can use the algorithm […]

Qt – Set QWidget transparency method

1. Several methods to set the transparency of a form (QWidget) in Qt 1.1 Set the background color of the form To add code in the constructor, you need to add the header file qpalette or qgui QPalette pal = palette(); pal.setColor(QPalette::Background, QColor(0x00,0xff,0x00,0x00)); setPalette(pal); This is accomplished by setting the background color of the form […]

GaussDB’s Application Lossless Transparency (ALT)

1. Background As an enterprise-level distributed database, GaussDB provides the ultimate high-availability disaster recovery capabilities such as “active-active in the same city and across AZs, three centers in two places, and strong consistency across two clusters.” When a database node cannot provide external services due to failure, in order to continue to ensure the availability […]

Use GDI+ (WIC) to load 32-bit bitmap or PNG image (with transparency channel)

#include <windows.h> #include <gdiplus.h> HBITMAP LoadBitmapFromResource(DWORD ResourceID, bool transparent = true) { HANDLE hGlobal = NULL; ULONG_PTR GDIToken = 0; Gdiplus::Image* Img = NULL; Gdiplus::GdiplusStartupInput GDIStartInput = NULL; Gdiplus::GdiplusStartup( &GDIToken, &GDIStartInput, NULL); HRSRC hResource = FindResource(NULL, MAKEINTRESOURCE(ResourceID), “BINARY”); if (!hResource) {<!– –>return NULL;} HGLOBAL hFileResource = LoadResource(NULL, hResource); if (!hFileResource) {<!– –>return NULL;} LPVOID lpFile […]

[CSS 23] Color RGBA HSLA Opacity opacity Linear Gradient Radial Gradient Transparency Gradient Repeat Gradient

CSS color gradient radial gradient Color CSS supports more than 140 color names, as well as hex values, RGB values, RGBA values, HSL values, HSLA values, and opacity RGBA color RGBA color values are an extension of RGB color values with an alpha channel – this channel specifies the opacity of the color RGBA color […]

Echarts pie chart 4.0 (3D ring chart, including transparency effect)

Reference link: https://blog.csdn.net/weixin_41326021/article/details/120195920 Original file link: https://download.csdn.net/download/Y1914960928/87884880 code: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Echarts pie chart 3d, ring chart (including transparency effect)</title> <script type=”text/javascript” src=”//i2.wp.com/fastly.jsdelivr.net/npm/[email protected]/dist/echarts.min.js”></script > <script src=”//i2.wp.com/cdn.bootcdn.net/ajax/libs/echarts-gl/2.0.8/echarts-gl.min.js”></script> <!– <script type=”text/javascript” src=”//i2.wp.com/fastly.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js “></script> –> </head> <body> <div id=”chart” style=”width: 800px; height: 500px; background: #131d2b;”></div> </body> <script> […]