当前位置:网站首页>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();边栏推荐
- 【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
- IMDB practice of emotion classification (simplernn, LSTM, Gru)
- How outlook puts together messages with the same discussion
- Caesar
- 论文学习——水文时间序列相似性查询的分析与研究
- How to troubleshoot SharePoint online map network drive failure?
- Redisson watchdog mechanism, redisson watchdog performance problems, redisson source code analysis
- Aardio - 自己构造的getIconHandle的方法
- 组件的自定义事件②
- Why some people earn nearly 10billion a year, while others earn 3000 a month: the details you ignore actually make the most money
猜你喜欢

浏览器本地存储
![[untitled]](/img/c2/63286ba00321c9cdef43ff40635a67.png)
[untitled]

她就是那个「别人家的HR」|ONES 人物

组件的自定义事件②

Custom events of components ②

2022 mobile crane driver test exercises and online simulation test

Day5: scanner object, next() and nextline(), sequential structure, selection structure, circular structure

How relational databases work

良心安利万向轮 SolidWorks模型素材网站

The database is locked. Is there a solution
随机推荐
2022制冷与空调设备运行操作国家题库模拟考试平台操作
redisson使用全解——redisson官方文档+注释(下篇)
AUTOSAR learning record (1) – ECUM_ Init
redisson使用全解——redisson官方文檔+注釋(上篇)
How do the top ten securities firms open accounts? In addition, is it safe to open a mobile account?
Redisson uses the full solution - redisson official documents + comments (Part 2)
[R language] age sex frequency matching select samples for case-control study, and perform frequency matching on age and sex
Li Kou daily question - day 31 -202 Happy number
奥迪AUDI EDI 项目中供应商需要了解哪些信息?
window c盘满了
Latex table
Software testing methods and techniques - overview of basic knowledge
2022 mobile crane driver test exercises and online simulation test
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
Gui Gui programming (XV) - use scale to control font size changes
Rk3399 platform development series explanation (network debugging) 7.30. What will affect the sending process of TCP packets?
Minecraft 1.16.5 module development (51) tile entity
力扣每日一题-第32天-1822.数组元素积的符号
【网站架构】一招搞定90%的分布式事务,实打实介绍数据库事务、分布式事务的工作原理应用场景
Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?