-
GlowButton - 发光的按钮控件
翻译 maninwest@Codeforge 作者:John Underhill @ Codeproject最近我在查看 KMP Player 软件上的一些图形元素(如果你想看看好的图形设计,我建议你也查看一下)。我在项目中需要的是一个简单的发光按钮控件,用于玩家控制的,这不是什么太神奇的东西,只是在鼠标悬停时能够改变颜色。让图像更改颜色很简单,只需修改 ImageAttribute 的颜色矩阵:private void DrawColoredImage(Graphics g, Image img, Rectangle bounds, Color clr)
{
using (ImageAttributes ia = new ImageAttributes())
{
ColorMatrix cm = new ColorMatrix();
// convert and refactor color palette
cm.Matrix00 = ParseColor(clr.R);
cm.Matrix11 = ParseColor(clr.G);
cm.Matrix22 = ParseColor(clr.B);
cm.Matrix33 = ParseColor(clr.A);
cm.Matrix44 = 1f;
// set matrix
ia.SetColorMatrix(cm);
// draw
g.DrawImage(img, bounds, 0, 0, img.Width,
img.Height, GraphicsUnit.Pixel, ia);
}
}示例代码中的 ParseColor 会将位转化为浮点值。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-07-25 02:55:04下载
- 积分:1
-
(3) The use of static compile
(3)使用编译时静态分配存储空间 (4)整型数据类型32位,占4个字节;布尔型数据类型8位,占1个字节;内存(由列表虚拟)寻址10位,1KB (5)为了实现方便,父类必须在子类之前定义 (6)由于时间原因,编译器做了如下简化: (i)表达式只能处理加法、-(3) The use of static compile-time allocation of storage space (4) integer data type 32, or four bytes; Boolean data type 8, or a byte; Memory (from the list of virtual) Addressable 10, 1KB (5) in order to achieve convenience, like father like son to be defined before (6) With the time, so the compiler to simplify the following : (i) the expression can only handle Ghaffar,
- 2023-01-24 05:45:03下载
- 积分:1
-
Will be a straight line two endpoints fixed, the use of controls to achieve twis...
将一条直线两个端点固定,利用控件实现曲折变化,在中心点上以每次5°方式扭转,形成曲折线。-Will be a straight line two endpoints fixed, the use of controls to achieve twists and turns in the center of history for each 5 ° approach to reverse to form a winding line.
- 2022-03-31 05:17:44下载
- 积分:1
-
关于为win32窗口编程,创建工具栏,菜单栏等窗口控件
关于为win32窗口编程,创建工具栏,菜单栏等窗口控件-Win32 programming on windows, create toolbars, menu bars, window controls, etc.
- 2022-08-23 21:23:03下载
- 积分:1
-
非常好用的delphi6.0控件,解压缩就可以使用。
非常好用的delphi6.0控件,解压缩就可以使用。-delphi6.0 very user-friendly controls, decompress it can be used.
- 2022-08-15 03:49:55下载
- 积分:1
-
用来创建不同控件的源码,用c编的,大家可以参考
用来创建不同控件的源码,用c编的,大家可以参考-different controls used to create the source code, using the c series, we can refer to
- 2023-01-22 06:05:03下载
- 积分:1
-
TabControl的使用Demo,演示了以对话框为子窗口建立多个Tab页的方法...
TabControl的使用Demo,演示了以对话框为子窗口建立多个Tab页的方法-TabControl use Demo to demonstrate the son of a dialog window to create a number of pages of the Tab
- 2022-07-27 18:00:43下载
- 积分:1
-
一个用VC实现XP风格的位图按钮控件的程序
一个用VC实现XP风格的位图按钮控件的程序-one with VC XP style button bitmap control procedures
- 2022-08-24 06:40:16下载
- 积分:1
-
visual c++ 按钮编程参考代码,
visual c++ 按钮编程参考代码,-visual c++ button programming reference code,
- 2022-01-26 05:22:00下载
- 积分:1
-
for delphi7 .1 has been issued and fully support the BDS4.0, this is a version o...
for delphi7
.1已经发布,完全支持BDS4.0,这个是评估版的。
希望大家能够找到正式版本.....
另外,4.0的正式版下载文件名为:hq8205_Ehlib_v4.0_FS.rar
14 January 2006
Deployed EhLib 4.1
+ Added support of Borland Developer Studio 2006 (Delphi and C++ Builder).
* Fixed a error of the grid twinkling in the tree mode on opening a node.
* Fixed a error of filling a list of values in the filter when PickList and KeyList properties for the TColumnEh is filled.
* Some other bugfixes.-for delphi7 .1 has been issued and fully support the BDS4.0, this is a version of the assessment. Hope you can find the official version ..... addition, the 4.0 version download file is named : hq8205_Ehlib_v4.0_FS.rar 14 January 2006 Dep loyed EhLib 4.1 Added support of Borland Develo per Studio 2006 (Delphi and C Builder).* Fixed a error of the grid in the tree twinkling on op mode ening a node.* Fixed a error of filling a list of v R in the filter and when PickList KeyList pr operties for the TColumnEh is filled.* Some oth er b
- 2022-02-01 08:19:32下载
- 积分:1