最近接触GDI编程比较多,就把常见的技巧和注意点整理成一个系列吧,希望对大家有帮助。

1.TextOut的基本使用

TextOut的属于比较老的文本输出函数,但是简单的文本输出和格式控制使用它非常方便,废话不多说,基本用法如下:

[cpp] view plaincopy print?
  1. void DrawArea1(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. CRect rc(ptLeftTop, ptRightBottom);
  5. CBrushHandle brush;
  6. brush.CreateSolidBrush(RGB(255,0,0));
  7. FillRect(mydc, rc, brush);
  8. brush.DeleteObject();
  9. mydc.SetBkMode(OPAQUE);
  10. mydc.TextOut(10+ptLeftTop.x, 10+ptLeftTop.y, L"文字填充背景 非透明");
  11. mydc.SetBkMode(TRANSPARENT);
  12. mydc.TextOut(10+ptLeftTop.x, 30+ptLeftTop.y, L"文字填充背景 透明");
  13. mydc.SetBkMode(OPAQUE);
  14. mydc.SetBkColor(RGB(0,255,0));
  15. mydc.TextOut(10+ptLeftTop.x, 50+ptLeftTop.y, L"文字填充背景 非透明 设置背景填充色");
  16. mydc.SetBkMode(OPAQUE);
  17. mydc.SetBkColor(RGB(0,0,255));
  18. mydc.SetTextColor(RGB(0,255,0));
  19. mydc.TextOut(10+ptLeftTop.x, 70+ptLeftTop.y, L"文字填充背景 非透明 设置背景填充色和文字颜色");
  20. mydc.RestoreDC(-1);
  21. }
 void DrawArea1(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();CRect rc(ptLeftTop, ptRightBottom);CBrushHandle brush;brush.CreateSolidBrush(RGB(255,0,0));FillRect(mydc, rc, brush);brush.DeleteObject();mydc.SetBkMode(OPAQUE);mydc.TextOut(10+ptLeftTop.x, 10+ptLeftTop.y, L"文字填充背景 非透明");mydc.SetBkMode(TRANSPARENT);mydc.TextOut(10+ptLeftTop.x, 30+ptLeftTop.y, L"文字填充背景 透明");mydc.SetBkMode(OPAQUE);mydc.SetBkColor(RGB(0,255,0));mydc.TextOut(10+ptLeftTop.x, 50+ptLeftTop.y, L"文字填充背景 非透明 设置背景填充色");mydc.SetBkMode(OPAQUE);mydc.SetBkColor(RGB(0,0,255));mydc.SetTextColor(RGB(0,255,0));mydc.TextOut(10+ptLeftTop.x, 70+ptLeftTop.y, L"文字填充背景 非透明 设置背景填充色和文字颜色");mydc.RestoreDC(-1);}

效果如下:

可以看到,

1.使用SetBkMode决定背景是否透明,这在一张背景图上输出文字时经常遇到

2.使用SetBkColor和SetTextColor设置文本和文本背景颜色

2.SetTextAlign控制TextOut输出格式

如下:

[cpp] view plaincopy print?
  1. void DrawArea2(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. mydc.SetTextAlign(TA_RIGHT);
  5. mydc.TextOut(150+ptLeftTop.x, 10+ptLeftTop.y, L"TextOut Right Align");
  6. mydc.SetTextAlign(TA_LEFT);
  7. mydc.TextOut(150+ptLeftTop.x, 30+ptLeftTop.y, L"TextOut Left Align");
  8. mydc.SetTextAlign(TA_TOP);
  9. mydc.TextOut(150+ptLeftTop.x, 70+ptLeftTop.y, L"Top Align");
  10. mydc.SetTextAlign(TA_BOTTOM);
  11. mydc.TextOut(150+ptLeftTop.x, 70+ptLeftTop.y, L"Bottom Align");
  12. mydc.SetTextAlign(TA_TOP |TA_LEFT);
  13. mydc.TextOut(150+ptLeftTop.x, 90+ptLeftTop.y, L"Line 1\nLine2\nLine3\tLine3");//不识别居中
  14. mydc.RestoreDC(-1);
  15. }
 void DrawArea2(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();mydc.SetTextAlign(TA_RIGHT);mydc.TextOut(150+ptLeftTop.x, 10+ptLeftTop.y, L"TextOut Right Align");mydc.SetTextAlign(TA_LEFT);mydc.TextOut(150+ptLeftTop.x, 30+ptLeftTop.y, L"TextOut Left Align");mydc.SetTextAlign(TA_TOP);mydc.TextOut(150+ptLeftTop.x, 70+ptLeftTop.y, L"Top Align");mydc.SetTextAlign(TA_BOTTOM);mydc.TextOut(150+ptLeftTop.x, 70+ptLeftTop.y, L"Bottom Align");mydc.SetTextAlign(TA_TOP |TA_LEFT);mydc.TextOut(150+ptLeftTop.x, 90+ptLeftTop.y, L"Line 1\nLine2\nLine3\tLine3");//不识别居中mydc.RestoreDC(-1);}

效果如下:

默认的是TA_LEFT和TA_TOP

注意:

1.TA_RIGHT意味着输出文字是以当前的坐标向左输出

2.TA_BOTTOM意味着当前字体的底部和当前输出的坐标点对齐,所以可以看到同样是距离顶部70,TA_TOP和TA_BOTTOM分别用当前字体的顶部和底部和当前输出坐标点对齐,导致两次输出不在同一行。

3.TextOut不支持转义字符\n、\t的使用

3.DrawText使用

DrawText是TextOut的升级版,支持更多的格式控制,如下:

[cpp] view plaincopy print?
  1. void DrawArea3(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. CRect rc(ptLeftTop, ptRightBottom);
  5. CBrushHandle brush;
  6. brush.CreateSolidBrush(RGB(120,120,0));
  7. FillRect(mydc, rc, brush);
  8. brush.DeleteObject();
  9. CSize sizeText;
  10. CRect rcText(ptLeftTop, ptRightBottom);
  11. //自动计算居中
  12. CString csText = L"A Single Line1";
  13. mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_CENTER/* | DT_VCENTER*/);
  14. //手动计算居中
  15. csText = L"A Single Line2";
  16. mydc.GetTextExtent(csText, csText.GetLength(), &sizeText);
  17. rcText = CRect(ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-sizeText.cx)/2,
  18. 20+ptLeftTop.y,
  19. ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-sizeText.cx)/2 + sizeText.cx,
  20. 20+ptLeftTop.y+ sizeText.cy);
  21. mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_LEFT | DT_TOP);
  22. //换种方法计算居中
  23. csText = L"A Single Line3";
  24. CRect rcCalc;
  25. mydc.DrawText(csText, csText.GetLength(), rcCalc, DT_CALCRECT | DT_SINGLELINE);//也可计算多行
  26. rcText = CRect(ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-rcCalc.Width())/2,
  27. 40+ptLeftTop.y,
  28. ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-rcCalc.Width())/2 + sizeText.cx,
  29. 40+ptLeftTop.y+ rcCalc.Height());
  30. mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_LEFT | DT_TOP);
  31. //消除背景
  32. mydc.SetBkMode(TRANSPARENT);
  33. //多行文字,识别\n,使用DT_EXPANDTABS扩展\t
  34. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+60), ptRightBottom);
  35. csText = L"Line 1\nLine2\nLine3\tLine3";
  36. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_EXPANDTABS);
  37. //自动截断-DT_END_ELLIPSIS-多行时只截断最后一行
  38. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+120), ptRightBottom);
  39. csText = L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line\n"
  40. L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line";
  41. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_END_ELLIPSIS);
  42. //自动截断-DT_PATH_ELLIPSIS-多行时只截断路径最后一行
  43. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+160), ptRightBottom);
  44. csText = L"C:\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\n"
  45. L"\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest";
  46. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_PATH_ELLIPSIS);
  47. //自动截断-DT_WORD_ELLIPSIS-多行时截断每一行
  48. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+200), ptRightBottom);
  49. csText = L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line\n"
  50. L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line";
  51. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_WORD_ELLIPSIS);
  52. //设置前后景颜色
  53. mydc.SetBkMode(OPAQUE);
  54. mydc.SetBkColor(RGB(0,0,255));
  55. mydc.SetTextColor(RGB(0,255,0));
  56. //自动换行
  57. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+240), ptRightBottom);
  58. csText = L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line to change line";
  59. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP);
  60. rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+260), ptRightBottom);
  61. csText = L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line to change line";
  62. mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_WORDBREAK);
  63. mydc.RestoreDC(-1);
  64. }
 void DrawArea3(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();CRect rc(ptLeftTop, ptRightBottom);CBrushHandle brush;brush.CreateSolidBrush(RGB(120,120,0));FillRect(mydc, rc, brush);brush.DeleteObject();CSize sizeText;CRect rcText(ptLeftTop, ptRightBottom);//自动计算居中CString csText = L"A Single Line1";mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_CENTER/* | DT_VCENTER*/);//手动计算居中csText = L"A Single Line2";mydc.GetTextExtent(csText, csText.GetLength(), &sizeText);rcText = CRect(ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-sizeText.cx)/2, 20+ptLeftTop.y,ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-sizeText.cx)/2 + sizeText.cx,20+ptLeftTop.y+ sizeText.cy);mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_LEFT | DT_TOP);//换种方法计算居中csText = L"A Single Line3";CRect rcCalc;mydc.DrawText(csText, csText.GetLength(), rcCalc, DT_CALCRECT | DT_SINGLELINE);//也可计算多行rcText = CRect(ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-rcCalc.Width())/2, 40+ptLeftTop.y,ptLeftTop.x + (ptRightBottom.x-ptLeftTop.x-rcCalc.Width())/2 + sizeText.cx,40+ptLeftTop.y+ rcCalc.Height());mydc.DrawText(csText, csText.GetLength(), rcText, DT_SINGLELINE | DT_LEFT | DT_TOP);//消除背景mydc.SetBkMode(TRANSPARENT);//多行文字,识别\n,使用DT_EXPANDTABS扩展\trcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+60), ptRightBottom);csText = L"Line 1\nLine2\nLine3\tLine3";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_EXPANDTABS);//自动截断-DT_END_ELLIPSIS-多行时只截断最后一行rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+120), ptRightBottom);csText = L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line\n"L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_END_ELLIPSIS);//自动截断-DT_PATH_ELLIPSIS-多行时只截断路径最后一行rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+160), ptRightBottom);csText = L"C:\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\n"L"\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest\\testtesttest";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_PATH_ELLIPSIS);//自动截断-DT_WORD_ELLIPSIS-多行时截断每一行rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+200), ptRightBottom);csText = L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line\n"L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_WORD_ELLIPSIS);//设置前后景颜色mydc.SetBkMode(OPAQUE);mydc.SetBkColor(RGB(0,0,255));mydc.SetTextColor(RGB(0,255,0));//自动换行rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+240), ptRightBottom);csText = L"1A Very Long Long Long Long Long Long Long Long Long Long Single Line to change line";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP);rcText = CRect(CPoint(ptLeftTop.x, ptLeftTop.y+260), ptRightBottom);csText = L"2A Very Long Long Long Long Long Long Long Long Long Long Single Line to change line";mydc.DrawText(csText, csText.GetLength(), rcText, DT_LEFT | DT_TOP | DT_WORDBREAK);mydc.RestoreDC(-1);}

对应效果如下:

可以看到:

1.SetBkMode、SetBkColor、SetTextColor对于DrawTextOut仍然可用

2.可以使用格式控制符控制在指定区域居中显示,也可以计算输出文本的区域大小从而计算文本位置来达到自定义居中控制。这里使用两种方法计算文本区域大小,前一种调用dc.GetTextExtent实际上是调用SDK的GetTextExtentPoint32函数,后一种传入DT_CALCRECT参数先计算文本区域大小,这里推荐使用后一种。

3.DrawText默认是识别\n的,为了识别\t,传入参数DT_EXPANDTABS即可。

4.DrawText支持自动截断,注意以下几个参数的不同。
DT_END_ELLIPSIS     -多行时只截断最后一行
DT_PATH_ELLIPSIS   -多行时只截断路径最后一行
DT_WORD_ELLIPSIS -多行时截断每一行

5.使用参数DT_WORDBREAK支持自动换行

4.路径的使用

使用路径可以完成复杂的自定义绘制,类似PS中的路径功能,如下:

[cpp] view plaincopy print?
  1. void DrawArea4(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. CFont fontNew;
  5. fontNew.CreatePointFont(1200, L"Tohama");//20px
  6. mydc.SelectFont(fontNew);
  7. //创建和添加当前剪切路径
  8. CRect rcText(ptLeftTop, ptRightBottom);
  9. mydc.BeginPath();
  10. mydc.TextOut(ptLeftTop.x, ptLeftTop.y, L"路径");
  11. mydc.EndPath();
  12. mydc.SelectClipPath(RGN_XOR);
  13. mydc.DrawText(L"路径", -1, rcText, DT_SINGLELINE|DT_CALCRECT);
  14. int nStep = 2;
  15. for (int i=rcText.top; i<=rcText.bottom; i+= nStep)
  16. {
  17. mydc.MoveTo(rcText.left, i);
  18. mydc.LineTo(rcText.right, i);
  19. }
  20. mydc.RestoreDC(-1);
  21. }
 void DrawArea4(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();CFont fontNew;fontNew.CreatePointFont(1200, L"Tohama");//20pxmydc.SelectFont(fontNew);//创建和添加当前剪切路径CRect rcText(ptLeftTop, ptRightBottom);mydc.BeginPath();mydc.TextOut(ptLeftTop.x, ptLeftTop.y, L"路径");mydc.EndPath();mydc.SelectClipPath(RGN_XOR);mydc.DrawText(L"路径", -1, rcText, DT_SINGLELINE|DT_CALCRECT);int nStep = 2;for (int i=rcText.top; i<=rcText.bottom; i+= nStep){mydc.MoveTo(rcText.left, i);mydc.LineTo(rcText.right, i);}mydc.RestoreDC(-1);}

效果如下:

使用路径的步骤基本是固定的,在BeginPath和EndPath之间绘制GDI元素,然后SelectClipPath选择即可作为当前剪切区域使用。

5.区域的使用

区域特别是剪切区域在界面绘制中用的非常多,如下:

[cpp] view plaincopy print?
  1. void DrawArea5(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. CRect rcDraw(ptLeftTop, ptRightBottom);
  5. rcDraw.DeflateRect(30, 30);
  6. //选择剪切区域
  7. CRgn rgnDraw;
  8. rgnDraw.CreateRectRgnIndirect(rcDraw);
  9. mydc.SelectClipRgn(rgnDraw, RGN_AND);
  10. //排除部分绘制区域
  11. CRect rcExclude(ptLeftTop, ptRightBottom);
  12. rcExclude.DeflateRect(60,60);
  13. mydc.ExcludeClipRect(rcExclude);
  14. int nSteps = 5;
  15. for (int i=ptLeftTop.y; i<ptRightBottom.y; i+=nSteps)
  16. {
  17. mydc.MoveTo(ptLeftTop.x, i);
  18. mydc.LineTo(ptRightBottom.x, i);
  19. }
  20. mydc.RestoreDC(-1);
  21. }
 void DrawArea5(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();CRect rcDraw(ptLeftTop, ptRightBottom);rcDraw.DeflateRect(30, 30);//选择剪切区域CRgn rgnDraw;rgnDraw.CreateRectRgnIndirect(rcDraw);mydc.SelectClipRgn(rgnDraw, RGN_AND);//排除部分绘制区域CRect rcExclude(ptLeftTop, ptRightBottom);rcExclude.DeflateRect(60,60);mydc.ExcludeClipRect(rcExclude);int nSteps = 5;for (int i=ptLeftTop.y; i<ptRightBottom.y; i+=nSteps){mydc.MoveTo(ptLeftTop.x, i);mydc.LineTo(ptRightBottom.x, i);}mydc.RestoreDC(-1);}

效果如下:

这里剪切区域SelectClipRgn和排除绘制区域ExcludeClipRect都是常用的技巧,前者保证只在指定区域绘制,后者保证指定的区域不重复绘制,都可以达到优化绘制效率的效果。

6.窗口和视口区域的调整

这里还是按照Petzold的定义,逻辑坐标系是视口(View),设备坐标系是窗口(Window),默认的映射关系是MM_TEXT,一般不变,如果需要深入了解的话,建议去看下《Windows程序设计》,这里只演示最常用的原点变换,如下:

[cpp] view plaincopy print?
  1. void DrawArea6(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom)
  2. {
  3. mydc.SaveDC();
  4. mydc.SetViewportOrg(ptLeftTop.x+50, ptLeftTop.y+50);
  5. mydc.TextOut(0, 0, L"Text 1");
  6. mydc.SetViewportOrg(0, 0);
  7. mydc.SetWindowOrg(-ptLeftTop.x-50, -ptLeftTop.y-50);
  8. mydc.TextOut(0, 20, L"Text 2");
  9. mydc.RestoreDC(-1);
  10. }
 void DrawArea6(CDCHandle mydc, POINT ptLeftTop, POINT ptRightBottom){mydc.SaveDC();mydc.SetViewportOrg(ptLeftTop.x+50, ptLeftTop.y+50);mydc.TextOut(0, 0, L"Text 1");mydc.SetViewportOrg(0, 0);mydc.SetWindowOrg(-ptLeftTop.x-50, -ptLeftTop.y-50);mydc.TextOut(0, 20, L"Text 2");mydc.RestoreDC(-1);}

显示如下:

一般建议使用SetViewportOrg,这逻辑上比较直观。

本文完整演示代码下载链接

原创,转载请注明来自http://blog.csdn.net/wenzhou1219

GDI编程注意点-1相关推荐

  1. GDI+编程说明及小结

    原文地址:http://blog.csdn.net/byxdaz/article/details/5972759 GDI+(Graphics Device Interface Plus图形设备接口加) ...

  2. C#GDI+编程基础

    C#GDI+编程基础(一) C#GDI+基础(二)画刷详解 C#GDI+图像处理 转载于:https://www.cnblogs.com/halou/archive/2013/02/18/291626 ...

  3. MFC使用GDI+编程设置

    VC2005"项目/*属性"菜单项,打开项目的属性页窗口,先选"所有配置",再选"配置属性/链接器/输入"项,在右边上部的"附加依 ...

  4. Windows GDI和GDI+编程实例剖析(1)

    Windows GDI和GDI+编程实例剖析(1) 作者:宋宝华  e-mail:21cnbao@21cn.com 1.基本概念 GDI在Windows中定义为Graphics Device Inte ...

  5. c#创建画布_C#GDI+编程基础(一:Graphics画布类)

    GDI+存在的意义:将变成与具体硬件实现细节分开. GDI+步骤:获取画布,绘制图像.处理图像 命名空间: using System.Drawing;//提供对GDI+基本图形功能的访问 using ...

  6. MFC之GDI GDI+ 编程实例剖析

    GDI和GDI+编程实例剖析 1.基本概念  GDI在Windows中定义为Graphics Device Interface,即图形设备接口,是Windows API(Application Pro ...

  7. Delphi XE GDI+编程

    1.准备工作 GDI+(Graphics Device Interface Plus 图形设备接口加)是 Windows XP 和 Windows Server 2003操作系统的子系统,也是.NET ...

  8. C# GDI+编程(二)

    常用的绘图函数 DrawArc绘制一个弧形 示例:graphics.DrawArc(pen,0,0,200,200,90,120) 倒数第二个参数,表示起始度数,最后一个参数是弧形的跨越度数.比如起始 ...

  9. Delphi下的GDI+编程[2] DrawLine - 绘制直线

    例一效果图: 在GDI+中,绘制直线是通过TGPGraphics类的DrawLine方法实现的,此类的一些方法如下: DrawLine(线条) DrawRectangle(矩形) DrawEllips ...

最新文章

  1. java线程:互斥锁与读写锁
  2. CTR模型越来越深,如何让它变轻?
  3. Shell命令-系统信息及显示之uname、hostname
  4. 心电信号去噪(part4)--经验模态分解法(EMD)
  5. 编写JUnit测试的另一种方法(Jasmine方法)
  6. Linux的实际操作:用户管理(查ls -ahl,chown改文件所属者,chgrp改文件所属组,usermod改用户所属组)
  7. P5725 【深基4.习8】求三角形(python3实现)
  8. 把windows当linux用,把Windows Vista当成Linux系统来使用
  9. java11和13_Java1113
  10. C# 判断字符串为空的4种方法及效率
  11. python爬虫网页中的图片_Python爬虫爬取一个网页上的图片地址实例代码
  12. 单链表的归并算法思路总结
  13. 一张表带你了解自动化测试工具Parasoft VS TestBed
  14. zxr10交换机配置手册vlan_中兴ZXR10交换机配置
  15. Exercise_1
  16. java叠加两张png带透明图片
  17. WEB 网页增加 数字盲水印
  18. LCS 最大公共序列算法
  19. 公网视频流访问之webrtc-streamer
  20. 信号与系统时域分析(3)——时域经典法

热门文章

  1. 如何查看jinja2模板的上級_如何使用Python的Flask和谷歌app Engine来构建一个web app...
  2. three.js glb 多个_25万的预算,奔驰GLB、宝马X1、奥迪Q3该怎么选
  3. django 通过数据库表名获取app名
  4. WebSocket 详解
  5. Acess link
  6. SQL Server强制使用特定索引 、并行度、锁
  7. 12家国内外之名公司多场面试,微软到谷歌.让我们通过学习达到100%面试率与100%通过率...
  8. [题解]POJ 3683 Priest John's Busiest Day
  9. 18.Mysql SQL优化
  10. HTML5 使用 JS 生成二维码,带头像