-
CImageTextButton,图像按钮示例
CImageTextButton,图像按钮示例-CImageTextButton, image button example
- 2023-03-01 10:05:04下载
- 积分: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
-
功能更强大的位图按钮类gif动画的加载实现
功能更强大的位图按钮类gif动画的加载实现-more powerful bitmap button type gif animation to achieve load
- 2022-05-08 03:14:33下载
- 积分:1
-
an open playing so small procedures, try to see whether elections could not :)
一个开玩话的小程序, 试试看看是否能选否:)-an open playing so small procedures, try to see whether elections could not :)
- 2022-11-29 19:50:03下载
- 积分:1
-
WIN2000编程技术内幕第二章内容院码
WIN2000编程技术内幕第二章内容院码-WIN2000 Programming Insider content of the second chapter yards hospital
- 2022-03-17 20:00:15下载
- 积分:1
-
一个简单好用的usb调试程序,方便的调试环境和操作界面,帮你快速搞定usb...
一个简单好用的usb调试程序,方便的调试环境和操作界面,帮你快速搞定usb-a simple and easy USB debugger, convenient debugging environment and user interface, help you quickly to get usb
- 2022-08-12 22:18:59下载
- 积分:1
-
A very good example of radio button from the painting
一个非常好的,自绘圆形CButton按钮的例子-A very good example of radio button from the painting
- 2022-05-09 11:55:36下载
- 积分:1
-
适合光盘出租小店的,光盘出租管理软件,我也是从别的地方下载的,...
适合光盘出租小店的,光盘出租管理软件,我也是从别的地方下载的,-rental shop for the CD, CD-ROM rental management software, I also downloaded from elsewhere.
- 2022-08-22 11:17:58下载
- 积分:1
-
delphi默认的pannel没有transparent属性的 所以有了这个控件,透明的Panel...
delphi默认的pannel没有transparent属性的 所以有了这个控件,透明的Panel -delphi default properties pannel not so transparent With this control, transparent Panel
- 2022-03-01 08:39:28下载
- 积分:1
-
一种打印预览的实现
一种打印预览的实现-a Print Preview Implementation
- 2022-03-29 02:04:57下载
- 积分:1