TSCLED 1.0
Dec 29, 2001
by Safak Cinar
scinar@shaw.ca
http://members.shaw.ca/safak
Based on the component TDynaLED 1.0 by Samson Fu
LEGAL
=====
You are free to use and modify this component in any project
(freeware or commercial) but cannot sell or distribute
the component itself (whether as source code or in
compiled form), individually or bundled in a package without
prior written consent from the author.
That out of the way, feel free to modify the code. If you publish
your own component based on this one, make it freeware with
full source code and drop me a note. Alternatively, you can send
me your ideas, suggestions and bug reports and I will try to include
the functionality in the next version, with proper credit of course.
DESCRIPTION
===========
TSCLED is a multiline dot matrix LED display emulator that uses a
monochrome offscreen bitmap to draw on. Text can be displayed using
any installed font and it has a dozen or so built in animation
sequences and custom draw functionality.
TSCLED is based on the component TDynaLED 1.0 by Samson Fu. You can
download his component from http://www.torry.net/leds.htm.
TSCLED displays a monochrome bitmap (accessible through BITMAP
property) with adjustable pixel size and inter pixel spacing.
Although this BITMAP is exposed, you need not use it directly when
simply displaying text, which you do by assigning strings to either
the CAPTION or LINES properties.
Most of the features are quite straightforward, with a couple of
exceptions:
* For LEDSTYLE, sclsSQUARE and sclsROUND yield identical looking
displays unless LEDSIZE is larger than 2 pixels.
* TSCLED has both a LINES and a CAPTION property. If LINES is empty,
CAPTION is used,otherwise LINES is used. It is a little easier using
LINES at design time when entering multi-line text.
* The AUTOSIZE property may not be what you expect. If it is set to
true, any change in LEDSIZE, LEDDISTANCE or LEDCOUNTX or LEDCOUNTY
will change the component size, in other words, component WIDTH and
HEIGHT become derived properties. Otherwise, LEDCOUNTX and LEDCOUNTY
are derived from the other properties. Mainly a design time convenience.
* CLIPMODE can either be set to sccmTEXT or sccmDISPLAY. If set to
sccmTEXT, the monochrome BITMAP will be the minimum size to
accomodate the text drawn on it. Otherwise, the BITMAP will be the
same size as display (ie LEDCOUNTX by LEDCOUNTY pixels). To better
visualize this, enable ONAFTERDRAW on the this demo page, which will
draw a frame around the BITMAP. As a rule of thumb, use sccmTEXT
unless you are doing custom drawing.
* ALIGNMENTH doesn not use Delphi's TALIGNMENT values but a custom
enumerated type. This is in anticipation of a later feature.
ANIMATION
=========
The ANIMATE method takes 6 arguments:
Procedure Animate(Style,Interval,Steps:Integer;P1,P2,P3:Integer);
Style : 1..13, the various animation styles.
Interval : (Minimum) duration, in milliseconds, of each animation step
Steps : The total number of animation steps
P1,P2,P3 : Parameters. These are specific to each animation style.
Animation Styles:
1 : Blink Foreground
(no parameters)
2 : Blink Background
(no parameters)
3 : Blink background and foreground (ie. Toggle)
(no parameters)
4 : Stretch X
P1 = Angle (*1) increment (in degrees).
P2 = X coordinate of the vertical center line (*2)
5 : Stretch Y
P1 = Angle (*1) increment (in degrees).
P2 = Y coordinate of the horizontal center line (*2)
6 : Flip X
P1 = Angle increment (in degrees).
P2 = X coordinate of the vertical center line (*2)
7 : Flip Y
P1 = Angle increment (in degrees).
P2 = Y coordinate of the horizontal center line (*2)
8 : Pulasate
P1 = Angle (*3) increment (in degrees).
P2 = X coordinate of the center point (*2)
P3 = Y coordinate of the center point (*2)
9 : Rotate
P1 = Angle increment (in degrees).
For full cycle rotation Steps*P1 has to be a multiple of 360.
P2 = X coordinate of the center point (*2)
P3 = Y coordinate of the center point (*2)
10: Scroll X
P1 = Pixel increment (can be negative).
P2 = Wraparound value. After this many pixels, "what goes around comes
around". For nice cyclic animation, make sure that
a. Steps is larger than or equal to Bitmap.Width
or GetLEDCountX (depending on ClipMode).
b. Wraparound value is a multiple of pixel increment and steps.
11: Scroll Y
P1 = Pixel increment (can be negative).
P2 = Wraparound value. Same considerations for "Scroll X" apply.
12: Wipe X
P1 = Pixel increment (can NOT be negative).
13: Wipe Y
P1 = Pixel increment (can NOT be negative).
Notes:
(1) Stretching uses cosecant in the transformation filter, hence the angle.
(2) Center of display is "SCLED.LEDCountX Div 2, SCLED.LEDCountY Div 2"
Center of text is "SCLED.Bitmap.Width Div 2, SCLED.Bitmap.Height Div 2"
In the demo animations display center has been used.
(3) Pulsating uses cosine in the transformation filter, hence the angle.
没有合适的资源?快使用搜索试试~ 我知道了~
Delphi:新艺VOD系统.zip源码Delphi项目程序源码下载
共278个文件
dcu:48个
pas:40个
~pas:35个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 29 浏览量
2022-03-18
19:07:42
上传
评论
收藏 32.83MB ZIP 举报
温馨提示
Delphi:新艺VOD系统.zip源码Delphi项目程序源码下载Delphi:新艺VOD系统.zip源码Delphi项目程序源码下载 1.合个人学习技术做项目参考 2.适合学生做毕业设计参考 3.上线产品适合小公司开发项目参考
资源推荐
资源详情
资源评论
收起资源包目录
Delphi:新艺VOD系统.zip源码Delphi项目程序源码下载 (278个子文件)
VODclient.btl 288B
CRMnet.cfg 390B
VOD.CFG 390B
VODclient.cfg 386B
TEST.CFG 380B
RM.CFG 380B
SCLED_Demo.cfg 336B
Thumbs.db 119KB
RealMagic.dcr 700B
FeteSelect.dcr 700B
ItemSelect.dcr 700B
FeteSelect.dcr 700B
JQPHSelect.dcr 700B
ItemSelect.dcr 700B
SCLED.DCR 468B
SCLED.DCU 26KB
SCLEDDemo_MainUnit.dcu 21KB
JQPHSelect.dcu 18KB
FeteSelect.dcu 18KB
DBMain.dcu 17KB
FeteSelect.dcu 16KB
PYXG.DCU 15KB
FMPDEFS.DCU 15KB
YXGQ.DCU 13KB
ItemSelect.dcu 12KB
GXXZ.DCU 11KB
BHXG.DCU 9KB
RealMagic.dcu 9KB
GYXGPYFL.DCU 8KB
Main.dcu 7KB
DBGQ.DCU 7KB
WWXG.DCU 7KB
DCHC.DCU 7KB
GXXG.DCU 7KB
CurMusic.dcu 7KB
NetModal.dcu 7KB
YYTY.DCU 7KB
GYXG.DCU 6KB
ZTXG.DCU 6KB
JJLL.DCU 6KB
DBXS.DCU 6KB
JQPH.DCU 5KB
SelectVideo.dcu 5KB
SelectMusic.dcu 5KB
JJ.DCU 5KB
wsc1.dcu 5KB
HJFW.DCU 4KB
wsc2.dcu 4KB
wsc4.dcu 4KB
Data.dcu 3KB
Progress.dcu 3KB
Test.dcu 3KB
ItemSelect.dcu 3KB
Unit1.dcu 3KB
wsc3.dcu 3KB
VOD.DCU 3KB
CRMnet.dcu 3KB
Fmpmacs.dcu 3KB
RM.DCU 2KB
TEST.DCU 2KB
Fmpfctw.dcu 1KB
Resource.dcu 1KB
Winfmp.dcu 501B
Main.ddp 51B
DBMain.dfm 3.55MB
GXXZ.DFM 2.68MB
DBGQ.DFM 2.52MB
GXXG.DFM 2.5MB
GYXG.DFM 455KB
GYXGPYFL.DFM 447KB
YYTY.DFM 415KB
DCHC.DFM 386KB
JJLL.DFM 384KB
BHXG.dfm 372KB
WWXG.DFM 360KB
YXGQ.dfm 360KB
HJFW.DFM 330KB
PYXG.dfm 293KB
ZTXG.DFM 176KB
DBXS.dfm 115KB
JQPH.dfm 83KB
JJ.DFM 68KB
SCLEDDemo_MainUnit.dfm 20KB
Data.dfm 4KB
NetModal.dfm 1KB
SelectMusic.dfm 951B
SelectVideo.dfm 921B
Progress.dfm 741B
Main.dfm 731B
Test.dfm 707B
CurSelect.dfm 487B
CurMusic.dfm 483B
奥斯卡VOD方案10-19个用户.doc 449KB
奥斯卡VOD方案30-39个用户.doc 449KB
VOD系统介绍.doc 42KB
网络配置的建议.doc 20KB
VODclient.dof 4KB
CRMnet.dof 2KB
SCLED_Demo.dof 2KB
RM.DOF 2KB
共 278 条
- 1
- 2
- 3
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功