-
基本的椭圆形按钮
基本的椭圆形按钮-basic eclipse round button
- 2022-08-15 01:38:37下载
- 积分: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
-
Fractal procedures SUMMARY
分形程序-Fractal procedures SUMMARY
- 2022-12-23 12:00:04下载
- 积分:1
-
MFC库,VC++开发环境,椭圆按钮实现的封装,可直接用于其他工程...
MFC库,VC++开发环境,椭圆按钮实现的封装,可直接用于其他工程-MFC Library, VC++ Development environment, an oval button realize the package can be used directly in other projects
- 2022-02-09 21:14:55下载
- 积分:1
-
在delphi7.0中经常会因为没有通信控件而弄得很麻烦,SPCOMM是DELPHI7.0中较为实用的通讯控件...
在delphi7.0中经常会因为没有通信控件而弄得很麻烦,SPCOMM是DELPHI7.0中较为实用的通讯控件-in delphi7.0 often because of the absence of communication control, and most of a lot of trouble, SPCOMM DELPHI7.0 is the more practical Communication Control
- 2022-07-03 13:15:43下载
- 积分:1
-
具有IE风格的按钮控件,可设置边框式样,背景 的透明特性,字体的大小颜色...
具有IE风格的按钮控件,可设置边框式样,背景 的透明特性,字体的大小颜色-with IE-style button controls can be set to frame pattern, the transparent background characteristics, the font size color
- 2022-07-02 11:05:41下载
- 积分:1
-
非正方形形状的按钮
非正方形形状的按钮-The button which is not square
- 2022-08-18 18:26:11下载
- 积分:1
-
一个允许剪切,复制和粘贴的简单便栈板程序
一个允许剪切,复制和粘贴的简单便栈板程序-allow a cut, copy and paste of simple procedures will Plate
- 2023-04-03 00:40:03下载
- 积分:1
-
Internet found a lot of buttons on the qt 4 rewrite the information, but only in...
上网搜了很多关于qt 4重写按钮的资料,但是都只是介绍,没有源码。但是项目要求的按钮样式qt 4没有现成的,所以自己实现了一个简单的按钮。
模仿按钮的功能,通过重写
void paintEvent(QPaintEvent *event)
void mousePressEvent(QMouseEvent *event)
void mouseReleaseEvent(QMouseEvent *event)
三个函数达到绘制自定义按钮的目的。-Internet found a lot of buttons on the qt 4 rewrite the information, but only introduce, there is no source. But the project
- 2022-07-20 10:38:05下载
- 积分:1
-
多语言控件源码 下来自己看吧!
多语言控件源码 下来自己看吧!-more language from their source control and see!
- 2022-02-06 11:39:35下载
- 积分:1