当前位置:网站首页>Aardio - Shadow Gradient Text
Aardio - Shadow Gradient Text
2022-07-01 07:56:00 【Luguangqing】
This example uses the godking.paint library , Please go to :http://chengxu.online download .
effect :


Code 1:
import win.ui;
/*DSG{
{*/
var winform = win.form(text="aardio form";right=582;bottom=531)
winform.add(
plus={cls="plus";left=37;top=17;right=537;bottom=517;z=1}
)
/*}}*/
import godking.paint
var p = godking.paint.fromPlus(winform.plus,true/* Automatically refresh */,true/* Redraw the background */)
// Create a hatch brush
var b = p.brush.hatchBrush(10/* Brush style 0-52*/,0xFF000000/* The foreground */,0xFFFFFFFF/* Background color */)
// Draw hatched text with a brush
var font = ::LOGFONT(name=" In black ";point=120;color=0xFFFF0000;brush=b)
p.drawText(,/*y1*/,/*x2*/,/*y2*/," Shaded text ",font,0,0,0)
// Create a linear gradient brush
colors = {0xFFFF0000,0xFF00FF00,0xFF0000FF,0xFF00FFFF,0xFFFFFF00,0xFFFF00FF}
points = {0,0.2,0.5,0.7,0.8,1}
b = p.brush.lineBrush({1,1}/* The starting coordinates */,{200,200}/* End coordinates */,colors/* Color array */,points/* Position array */,/* Surround mode wrapMode*/)
// Draw linear gradient text with a brush
font.brush = b
p.drawText(-5,-5/*y1*/,/*x2*/,/*y2*/," Shaded text ",font,0,0,0)
winform.show();
win.loopMessage();Code 2:
import win.ui;
/*DSG{
{*/
var winform = win.form(text="aardio form";right=582;bottom=531)
winform.add(
plus={cls="plus";left=37;top=17;right=537;bottom=517;z=1}
)
/*}}*/
import godking.paint
var p = godking.paint.fromPlus(winform.plus,true/* Automatically refresh */,true/* Redraw the background */)
// Create shadow path
var path=..gdip.path(1/*_FillModeWinding*/)
path.addstring(" Shaded text ",gdip.family(" In black "),0,120*1.31,::RECTF(5,5,winform.plus.width,winform.plus.height),gdip.stringformat())
// Create a hatch brush
var b = p.brush.hatchBrush(18/* Brush style 0-52*/,0xFF000000/* The foreground */,0xFFFFFFFF/* Background color */)
// Draw hatched text with a brush
p.fillPath(path,b/* Fill color or brush object */)
// Create foreground text path
var path=..gdip.path(1/*_FillModeWinding*/)
path.addstring(" Shaded text ",gdip.family(" In black "),0,120*1.31,::RECTF(0,0,winform.plus.width,winform.plus.height),gdip.stringformat())
// Create a linear gradient brush
colors = {0xFFFF0000,0xFF00FF00,0xFF0000FF,0xFF00FFFF,0xFFFFFF00,0xFFFF00FF}
points = {0,0.2,0.5,0.7,0.8,1}
b = p.brush.lineBrush({1,1}/* The starting coordinates */,{200,200}/* End coordinates */,colors/* Color array */,points/* Position array */,/* Surround mode wrapMode*/)
// Draw linear gradient text with a brush
p.drawPath(path,0xFF000000/* Line color or pen object */,3/* Line width */)
p.fillPath(path,b/* Fill color or brush object */)
winform.show();
win.loopMessage();边栏推荐
- Aardio - 自己构造的getIconHandle的方法
- 组件的自定义事件②
- 【mysql学习笔记25】sql语句优化
- 2022广东省安全员A证第三批(主要负责人)特种作业证考试题库模拟考试平台操作
- PWN攻防世界int_overflow
- postgresql源码学习(26)—— Windows vscode远程调试Linux上的postgresql
- 【网站架构】一招搞定90%的分布式事务,实打实介绍数据库事务、分布式事务的工作原理应用场景
- QT -- 1. QT connection database
- Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
- Redisson watchdog mechanism, redisson watchdog performance problems, redisson source code analysis
猜你喜欢

The H5 page has set the font thickness style, but the wechat access style in Huawei mobile phone doesn't take effect?

Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years

Thesis learning -- Analysis and Research on similarity query of hydrological time series

How to make the two financial transactions faster

Conscience Amway universal wheel SolidWorks model material website

2022 tea master (intermediate) recurrent training question bank and answers

2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
![[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario](/img/10/ed857892d2e0ea72e100a4008e6d69.png)
[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario

How to troubleshoot SharePoint online map network drive failure?

How to use layui to display the data in the database in the form of tables
随机推荐
php laravel微信支付
Is it safe and reliable for Huatai Securities to open an account? How to open Huatai Securities Account
IMDB practice of emotion classification (simplernn, LSTM, Gru)
[MySQL learning notes 26] view
Custom events of components ②
浏览器本地存储
Sorting out tcp/udp communication problems
How outlook puts together messages with the same discussion
Gru of RNN
[kv260] generate chip temperature curve with xadc
Basic number theory -- combinatorial number
Two expressions of string
三极管是一项伟大的发明
【R语言】两个/N个数据合并merge函数
SharePoint - how to quickly check whether SharePoint is standard or enterprise edition?
华为ModelArts训练Alexnet模型
Array: question brushing record
AUTOSAR learning record (1) – ECUM_ Init
redisson看门狗机制,redisson看门狗性能问题,redisson源码解析
[batch dos-cmd command - summary and summary] - Common operators in the CMD window (<, < <, & <,>, > >, & >, & >, & &, ||, (),;, @)