当前位置:文档之家› 制作win7开始按钮图片

制作win7开始按钮图片

制作win7开始按钮图片
制作win7开始按钮图片

How To Create A Windows 7 Start Orb

April 16th, 2010 - Customization, Downloads, Tips & Tricks, Windows 7

1digg

Requirements:

?Windows 7

?Windows 7 Start Button Changer (Download Link at Bottom)

?Any good image editor (We will use Photoshop for this tutorial)

?Three images for default, hover & pressed orb states

Steps:

1Open your image editor and create a new 54 x 162 image.

2Fill the image background with black color.

3Create a new channel named “Alpha 1“

4Create guidelines at the 54th & 108th pixel with the help of rulers.

5Open the three images which you want to use for the default, hover & pressed orb states and resize them. It should not be greater then 54 x 54 pixels.

6Copy the image which you want to use for the default orb state and paste it before the first guideline.

7Copy the image which you want to use for the hover orb state and paste it in between the first & second guideline.

8Copy the image which you want to use for the pressed orb state and paste it after the second guideline.

9Merge all the three orb states images into one.

10Press CTRL & click on the layer’s thumbnail in which the three orb states are combined. 11Select the Alpha Channel and press Delete.

Press CTRL + S and save the image in BMP format.

13Use Windows 7 Start Button Changer to change the orb you have created.

14Check if it works properly. If it does not shows up properly then leave a comment here with a download link to your orb.

Downloads:

?door2windows Start Orb

?Start Orb PSD T emplate

?Windows 7 Start Button Changer

Unity3D游戏开发之添加背景图片

Unity3D游戏开发之添加背景图片 每个游戏在开始前都有登陆注册界面,但是登陆注册界面不只是几个Label,几个Button 组成的,还要有背景图片,可以怎么我们在只学习了GUI的前提下,怎么添加背景图片呢?我今天主要的任务就是做登陆注册界面,登陆注册界面要想好看点就要有背景图片,在unity中添加背景图片有两种方法,一种是通过代码来完成,还有一种是手动添加,我们都 来看看吧。 先来看看效果图: 通过代码完成: 1.//声明一张图片 2.public Texture2D img; 3. 4.//通过OnGUI方法执行下面操作 5.void OnGUI() 6.{ 7. string aa = ""; 8. 9. //构造一个空的GUIStyle 10. GUIStyle bb = new GUIStyle(); 11. 12. //设置bb正常显示时是背景图片

13. bb.normal.background = img; 14. https://www.doczj.com/doc/f014404865.html,bel(new Rect(0, 0, 1370, 780), aa, bb); 15.} 手动添加: 1、先创建一个新的摄像机,命名为Background Camera; 2、新建一个GUI Texture,命名为Background Image; 3、在Background Image的Inspector面板【狗刨学习网】中点击Layer下拉窗口, 选择“Add Layer”添加一个新的层名称为“Background Image”; 4、选中Background Image,做如下操作: 5、该GameObject的Layer值设置为之前你添加的Background Image; 6、选中Background Camera,进行如下操作:

Java程序添加漂亮背景图片的方法

整理后可执行代码如下: importjava.awt.*; importjavax.swing.*; public class TestBackgroundColor extends JFrame { public static void main(String[] args) { // TODO Auto-generated method stub TestBackgroundColortbc = new TestBackgroundColor(); tbc.setVisible(true); } privateJPanelimagePanel; privateImageIcon background; publicTestBackgroundColor() { background = new ImageIcon("渐变背景14.png");//背景图片 JLabel label = new JLabel(background);//把背景图片显示在一个标签里面 //把标签的大小位置设置为图片刚好填充整个面板 label.setBounds(0,0,background.getIconWidth(),background.getIconHeight()); //把内容窗格转化为JPanel,否则不能用方法setOpaque()来使内容窗格透明 imagePanel = (JPanel)this.getContentPane(); imagePanel.setOpaque(false); //内容窗格默认的布局管理器为BorderLayout imagePanel.setLayout(new FlowLayout()); imagePanel.add(new JButton("测试按钮")); this.getLayeredPane().setLayout(null); //把背景图片添加到分层窗格的最底层作为背景 this.getLayeredPane().add(label,new Integer(Integer.MIN_VALUE)); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setSize(background.getIconWidth(),background.getIconHeight()); this.setVisible(true);

(完整word版)修改BUTTON背景颜色

//定义色彩 const COLORREF CLOUDBLUE = RGB(128, 184, 223); const COLORREF WHITE = RGB(255, 255, 255); const COLORREF BLACK = RGB(1, 1, 1); const COLORREF DKGRAY = RGB(128, 128, 128); const COLORREF LTGRAY = RGB(192, 192, 192); const COLORREF YELLOW = RGB(255, 255, 0); const COLORREF DKYELLOW = RGB(128, 128, 0); const COLORREF RED = RGB(255, 0, 0); const COLORREF DKRED = RGB(128, 0, 0); const COLORREF BLUE = RGB(0, 0, 255); const COLORREF DKBLUE = RGB(0, 0, 128); const COLORREF CYAN = RGB(0, 255, 255); const COLORREF DKCYAN = RGB(0, 128, 128); const COLORREF GREEN = RGB(0, 255, 0); const COLORREF DKGREEN = RGB(0, 128, 0); const COLORREF MAGENTA = RGB(255, 0, 255); const COLORREF DKMAGENTA = RGB(128, 0, 128); //在.h文件定义彩色按钮 CColorButton m_btnUp; //在.cpp文件调用函数着色 VERIFY(m_btnUp.Attach(IDC_BUTTON1, this, RED, WHITE, DKRED)); //CColorButton 类原型 //colorbtn.h #ifndef __COLORBTN_H__ #define __COLORBTN_H__ class CColorButton : public CButton { DECLARE_DYNAMIC(CColorButton) public: CColorButton(); virtual ~CColorButton(); BOOL Attach(const UINT nID, CWnd* pParent, const COLORREF BGColor = RGB(192, 192, 192), // gray button const COLORREF FGColor = RGB(1, 1, 1), // black text const COLORREF DisabledColor = RGB(128, 128, 128), // dark gray disabled text const UINT nBevel = 2

给电脑的右键菜单添加背景图片

给电脑的右键菜单添加背景图片 有了电脑,要让电脑好看些,这就需要多多美化电脑了。现在说下,怎样给右键菜单添加背景图片,你可以给自己的右键背景图片修改成美女哦。那多爽眼啊。嘻嘻。 开始: 第一步,下载动态链接库文件 先下载并解压添加右键菜单背景图片动态链接库文件(下载地址 https://www.doczj.com/doc/f014404865.html,/soft/utilitie/systems/133/407633.shtml )。打开解压文件夹,里面的“ContextBG.dll”文件就是即将用到的动态链接库文件。为方便使用,将此文件复制到“C:\\Windows”文件夹中。 第二步,添加右键弹出菜单背景图片 依次单击“开始”→“运行”,打开“运行”对话框。在“运行”对话框中输入 “regsvr32 c:\\windows\\ContextBG.dll”(不包括引号),单击确定,弹出一个regsvr32加载成功的对话框。这时,再右击桌面上的图标,你就发现弹出菜单已经有虎哥的背景图片了(图1)。

小贴士:遗憾的是,右击我的电脑、盘符等系统图标弹出菜单不能出现背景图片。第三步,取消右键菜单背景图片 如果要取消右键菜单背景图片,同样在“运行”对话框中输入“regsvr32 /u c:\\windows\\ContextBG.dll”,单击确定,出现加载成功对话框,完成对图片的卸载。 如果看倦了虎哥的图片该怎样更换呢?你可以通过附带下载的ResHacker 工具软件来修改“ContextBG.dll”库文件进行图片的更换。 打开ResHacker工具软件,依次单击“文件→打开”,弹出打开文件对话框,指定并打开C盘Windows文件夹下的“ContextBG.dll”动态链接库文件。然后,单击“操作”菜单下的“替换位图”命令,弹出“替换位图”对话框(图2)。在对话框的右上角,可以清楚地看到虎哥的图片,单击“打开新位图文件”按钮,弹出“打开”文件对话框,指定打开事先准备好的一张位图图片(*.bmp格式图片),单击“替换”按钮完成图片替换。最后,单击“文件”菜单中“保存”命令,保存替换图片后的动态链接库文件。

给按钮添加背景图片

package background; import java.awt.Container; import java.awt.Graphics; import java.awt.Image; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class JpanelBackgroundDemo extends JFrame{ MyPanel panel; JButton btn; Container c; public JpanelBackgroundDemo(){ setVisible(true); setSize(400,400); setLayout(null);// 不使用任何布局 c = getContentPane(); panel = new MyPanel(new ImageIcon("./src/images/chenhe.png").getImage()); panel.setBounds(0, 0, 300, 300); c.add(panel); btn = new JButton("测试按钮"); panel.add(btn); } public static void main(String[] args) { new JpanelBackgroundDemo(); } } // 重写容器类比如JPanel类的PaintComponent()方法 class MyPanel extends JPanel{ Image img;

qss美化___按钮

Qt开发界面程序时为按钮控件添加背景图片 Qt本身直接创建的按钮看起来有些单调,如,当然,程序员可以在程序代码里通过写相关的setStyle类的函数来自定义按钮样式,如设置颜色、形状等。但有时这些样式仍不能满足客户的特殊需求,这就需要为按钮添加背景图片。Qt自身支持的强大的qss美化文件为我们美化界面提供了极大方便,本文就最常用、简单的按钮美化给出简单教程。 1.首先,我们需要自己新建一个文本文件,写入以下内容: QPushButton#MyBtn{ border-image:url(:/my_ObjectName/Resources/ Normal/btn_Pic.bmp); } QPushButton# MyBtn:hover{ border-image:url(:/my_ObjectName /Resources/ Go/ btn_Pic.bmp); } QPushButton# MyBtn:pressed{ border-image:url(:/my_ObjectName /Resources/ Press/ btn_Pic.bmp); } QPushButton# MyBtn:!enabled{ border-image:url(:/my_ObjectName /Resources/ Null/ btn_Pic.bmp); } 将文件保存为my_qssFile.qss (注意:后缀是.qss),并将该文件放在你工程源代码的那个文件夹的目录下面。 说明:Normal文件夹下存放的是按钮正常状态下的背景图片,Go文件夹下存放的是鼠标经过该按钮时的按钮背景图片,Press文件夹下存放鼠标点击按下时的背景图片,Null文件夹下存放该按钮不可用时(setEnabled(false))的背景图片. 2.以记事本方式打开该目录下的.qrc文件(注意:该文件是建立工程时,系统自动生成的,不需要你改名字),在 前回车新建一行,在该行写如下代码: Resources /Normal/ btn_Pic.bmp Resources /Press/ btn_Pic.bmp Resources /Go/ btn_Pic.bmp Resources /Null/ btn_Pic.bmp 然后保存该文件。 3.在程序main.cpp文件里封装如下函数

MFC添加背景图片

问题 有的程序员希望在自己的应用程序中以有趣味的位图来代替对话框中令人讨厌的灰色背景,希望位图在对话框中看起来象墙纸而且并不影响对话框中的控制或静态文本的显示。 许多程序员找不到一个改变窗口背景的简单方法,是否有方法利用Windows API 函数来改变对话框的背景为某个位图呢? 方法 改变对话框的背景为某个位图并不困难,关键是需要清楚对话框和窗口是如何设置背景颜色的,以及程序员应该如何修改对话框和窗口改变显示的行为。 当Windows 准备改变对话框背景的颜色时,通常发送两个消息给对话框。第一个消息是WM_ERASEBKGND,此消息指示对话框绘制对话框的背景颜色,以“抹去”屏幕上对话框显示区域的任何显示。 第二个消息是WM_CTLCOLOR,发送此消息给对话框或窗口来表示Windows 需要知道对话框中控制的颜色。 在本节中,将重置对消息WM_ERASEBKGND 的处理,以便将位图绘制在窗口的背景上。另外,将重置对消息WM_CTLCOLOR 的处理,以避免对话框中的控制“剪补”位图。最后的结果是对话框的背景位图绘制在对话框背景上,控制在背景位图的“上面”。 步骤 按照下列步骤实现一个例子程序。运行此例子程序,选择菜单Dialog 和菜单项Bitmap Background,将弹出一个对话框,显示背景位图和几个控制。 实现例子程序的具体步骤如下: 1.在Visual C++中,利用AppWizard 创建新的项目文件,并命名此项目文件为 Ld145。 2.进入资源编辑器并创建新的对话框模板。在对话框中,添加几个静态文本域和编辑域,以及几个单选按钮和列表框。对话框的实际组成并不重要,只要能够覆盖部分位图就可以了。 3.选择ClassWizard,为刚创建的对话框模板创建对话框类,新类命名为 CBitma PB kgdDlg。 4.在资源编辑器中创建新的位图。 5.进入ClassWizard,从下拉列表中选择CBitmapBkgdDlg,从对象列表中选择对象CBitmapBkgdDlg,从消息列表中选择消息WM_INITDIALOG,点击按钮Add Function,在CBitmapBkgdDlg 的方法OnInitDialog 中添加下列代码: BOOL CBitmapBkgdDlg::OnInitDialog() { CBitmap * pBmpOld; RECT rectClient; VERIFY(m_brush=(HBRUSH)GetStockObject(HOLLOW_BRUSH)); VERIFY(m_Bitmap.LoadBitmap(IDB_BITMAP1)); m_Bitmap.GetObject(sizeof(BITMAP),&m_bmInfo);

QT 对话框添加背景图片的方法

QT 对话框添加背景图片的方法 1. QPalette的方法 #include #include int main(int argc, char *argv[]) { QApplication app(argc,argv); QFrame *frame = new QFrame; frame->resize(400,700); QPixmap pixmap("images/frame.png"); QPalette palette; palette.setBrush(frame->backgroundRole(),QBrush(pixmap)); frame->setPalette(palette); frame->setMask(pixmap.mask()); //可以将图片中透明部分显示为透明的 frame->setAutoFillBackground(true); frame->show(); return app.exec(); }注意图片路径怎么表示,我的图片放在该工程下的images文件夹中。 存在问题:图片可以显示出来,但是图片大小不能和frame大小一致,显示效果不好,具体怎样调整大小,以后再补充,效果如下(设置了透明的,好像很漂亮~透明部分将我的桌面显示出来了~_~): 2.setStyleSheet方法(非常好用的方法) #include #include int main(int argc, char *argv[]) { QApplication app(argc,argv); QFrame *frame = new QFrame; frame->setObjectName("myframe"); frame->resize(400,700); frame->setStyleSheet("QFrame#myframe{border-image:url(images/frame.png)}" ); frame->show(); return app.exec(); }效果如下:

Android使用xml改变button背景图片

Android使用xml改变button背景图片 这篇文章我们使用Android XML来改变各种按钮状态(获得焦点、获得焦点并按下、失去焦点、默认)时的背景图,首先我们自己定义一个imgbutton.xml代码: 在main.xml中定义一个button代码:

相关文档 最新文档