BGRABitmap图像操作12:文本输出带阴影
来源:互联网 发布:centos 7 ant 编辑:程序博客网 时间:2024/05/17 21:39
unit Unit1;{$mode objfpc}{$H+}interfaceuses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, BGRABitmap, BGRAWinBitmap, BGRABitmapTypes, BGRAGradientScanner, BGRATextFX, BGRAText;type { TForm1 } TForm1 = class(TForm) procedure FormPaint(Sender: TObject); private { private declarations } public { public declarations } end;var Form1: TForm1;implementation{$R *.lfm}{ TForm1 }procedure TForm1.FormPaint(Sender: TObject);var image: TBGRABitmap; txt: TBGRACustomBitmap; c: TBGRAPixel;begin image := TBGRABitmap.Create(ClientWidth, ClientHeight, ColorToBGRA(ColorToRGB(clBtnFace)) ); c := ColorToBGRA(ColorToRGB(clBtnText)); txt := TextShadow(ClientWidth, ClientHeight, '您好,中国!', 30, c, BGRABlack, 5, 5, 5); image.PutImage(0,0,txt,dmDrawWithTransparency); txt.Free; image.Draw(Canvas,0,0,True); image.free;end;end.
0 0
- BGRABitmap图像操作12:文本输出带阴影
- BGRABitmap图像操作12:文本输出角度
- BGRABitmap图像操作12:四行不同效果文本输出
- BGRABitmap图像操作12:文本操作功能
- BGRABitmap图像操作12:文本自动换行
- BGRABitmap图像操作12:渐变文本颜色
- BGRABitmap图像操作12:另一种酷炫阴影
- BGRABitmap图像操作9:用 phong 阴影制作纹理
- BGRABitmap图像操作14:BGRABitmap的 Canvas2D
- BGRABitmap图像操作9c:同时使用莫林杂点和 phong 阴影制作纹理
- BGRABitmap图像操作8:纹理
- BGRABitmap图像操作5:擦除部分图像
- BGRABitmap图像操作13:BGRABitmap的坐标系统
- BGRABitmap图像操作4:直接操作像素
- BGRABitmap图像操作5:使用层、遮罩
- BGRABitmap图像操作6:平的线头
- BGRABitmap图像操作7:贝塞尔曲线
- BGRABitmap图像操作8:彩色纹理
- AndroidStudio使用Gradle-高级篇
- 指针引用数组----恶补之二
- 直博与硕博连读的优劣
- leetcode No41. First Missing Positive
- 分布式缓存-Memcached
- BGRABitmap图像操作12:文本输出带阴影
- 实用SQL语句大全
- 20160921
- 基础知识之防止SQL注入
- Android软键盘监听
- 单例模式
- Android工具
- eclipse maven 项目
- Mac ubuntu安装无线驱动