-
一个好用的按钮类可以直接在程序里面用的不信你可以
一个好用的按钮类可以直接在程序里面用的不信你可以-a handy button type can be directly used in the inside of a letter you can try
- 2022-08-20 22:40:28下载
- 积分: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
-
formatted drives, caution! ! ! Of course, you can change the process, into a for...
格式化硬盘,慎用!!!当然,你可以改一下程序,变为格式化A盘。(2KB)-formatted drives, caution! ! ! Of course, you can change the process, into a formatted disk. (2 KB)
- 2022-01-21 00:31:39下载
- 积分:1
-
FAKEMENU demonstrates how an application can display a window that
behaves in...
FAKEMENU demonstrates how an application can display a window that
behaves in a similar manner as a menu. It also illustrates the use
of the multiple-monitor compatibility header file to
allow the application to run properly on both multiple-monitor
and single-monitor systems.-FAKEMENU demonstrates how an application can display a window that behaves in a similar ma nner as a menu. It also illustrates the use of the
- 2023-04-29 13:15:04下载
- 积分:1
-
CHoverButton
CHoverButton - A simple hoverbutton with one bitmap and a tooltip A simple drop-in class that provides a hot look button using the _TrackMouseEvent function-CHoverButton- A simple hoverbutton with one bitmap and a tooltip A simple drop-in class that provides a hot look button using the _TrackMouseEvent function
- 2022-03-09 20:45:35下载
- 积分:1
-
一个windows 平台的按钮开发控件,也许是你需要的
一个windows 平台的按钮开发控件,也许是你需要的-A windows platform for the development of the control button, perhaps you need
- 2022-05-27 17:45:17下载
- 积分:1
-
一个网上比较完善的按钮源码的升级版.内有运行的图片效果
一个网上比较完善的按钮源码的升级版.内有运行的图片效果-An on-line source relatively perfect upgrade button. In the picture has the effect of running
- 2022-02-20 11:25:14下载
- 积分:1
-
用VC开发用于按钮的全部自己动换肤功能,一个非常好的类
用VC开发用于按钮的全部自己动换肤功能,一个非常好的类-VC developed for the button with all their moving skin functions, a very good class
- 2022-04-08 13:56:47下载
- 积分:1
-
设置含有图片的按钮控件,将位图加载到按钮控件上
设置含有图片的按钮控件,将位图加载到按钮控件上-Settings button control containing pictures will be loaded into the bitmap button control on the
- 2022-03-23 13:29:17下载
- 积分:1
-
显示AVI文件的按钮.使用CAniButton替换你工程里的CButton声明即可(实现代码AniButton.h,AniButton.cpp)...
显示AVI文件的按钮.使用CAniButton替换你工程里的CButton声明即可(实现代码AniButton.h,AniButton.cpp)-show AVI file button. Use your CAniButton replacement project CButton"s statement can (achieve code AniButton.h, AniButton.cpp)
- 2022-07-23 04:51:40下载
- 积分:1