-
bgrid实例下拉菜单
bgrid实例下拉菜单-bgrid examples of the drop-down menu
- 2023-08-26 00:50:03下载
- 积分:1
-
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
-
用vb编写的一个小小的日历程序,对初学vb的同志很有帮助。
用vb编写的一个小小的日历程序,对初学vb的同志很有帮助。-prepared with a small calendar procedures for beginners vb comrades helpful.
- 2022-01-22 11:24:50下载
- 积分:1
-
WinCE achieve Tap and Hold function
WinCE 上实现 Tap and Hold 功能-WinCE achieve Tap and Hold function
- 2022-03-03 04:08:41下载
- 积分:1
-
仪表盘控件程序,可以灵活得更改界面,显示各种漂亮得仪表效果,开发工控产品一定有用...
仪表盘控件程序,可以灵活得更改界面,显示各种漂亮得仪表效果,开发工控产品一定有用-dashboard controls procedures, flexible interface may be varied, showing the beautiful effect in Instrumentation, Industrial Development certain useful products
- 2022-08-09 15:35:55下载
- 积分:1
-
inside several procedures, which can be used for variety of button controls prog...
里边有几个程序,可以用来实现多姿多彩的按钮控件编程,很好用的-inside several procedures, which can be used for variety of button controls programming, the good
- 2023-05-04 06:30:03下载
- 积分:1
-
仿抽屉控件 来源于codeproject 希望能给你带来方便哈
仿抽屉控件 来源于codeproject 希望能给你带来方便哈-Imitation drawer control from codeproject hope you can bring convenience to Kazakhstan
- 2022-01-31 19:58:44下载
- 积分:1
-
shadow effect with the control button
带有阴影效果的按钮控件-shadow effect with the control button
- 2022-01-27 09:52:38下载
- 积分:1
-
给用户的方式重新排列控件,控件添加没有WR…
给使用者一个重新排列控件的方法,添加控件而不用为新添加的控件写移动代码,我都代办了.控件可以随意拖动,我希望可以成为以后程序都具备的功能-Give the user a way to rearrange the controls, add controls without having to write for the new controls to add mobile code, I have had agency. Controls are free to drag, I hope I can become part of the program are available features
- 2022-01-23 11:16:35下载
- 积分:1
-
五个好玩意,请大家用用,使几个小游戏,很有意思
五个好玩意,请大家用用,使几个小游戏,很有意思-five fun Italy, and please use it, a few small games, very interesting
- 2022-12-15 15:20:04下载
- 积分:1