Welcome![Sign In][Sign Up]
Location:
Search - hdc

Search list

[CSharp34211

Description: 图像灰度的改变 void CDibView::OnZftJh() {  CClientDC pDC(this)  HDC hDC=pDC.GetSafeHdc() //获取当前设备上下文的句柄;  SetStretchBltMode(hDC,COLORONCOLOR)  CDibDoc *pDoc=GetDocument()-Grayhound change void CDibView : : OnZftJh () (CClientDC pDC (this) HDC pDC.GetSafeHdc hDC = () / / access to the current context handle equipment; SetStretchBltMode (hDC, COLORONCOLOR) CDibDoc * pDoc = Malaysia ()
Platform: | Size: 3290 | Author: hxj | Hits:

[Other resourcehdcjpgl

Description: 代码名称:ImageHandler: A Component to Copy an HDC Area to a JPEG File 代码说明:将DC内数据保存为JPG图片 工具/平台:VC6 -code name : ImageHandler : A Component Copy to an HDC Area to a JPEG File code Description : DC within the data retention tool for JPG Photo / Platform : VC6
Platform: | Size: 335168 | Author: 江杭州 | Hits:

[OpenGL programGLOutput

Description: 在WINDOWS环境下做HDC初始化OPENGL 在屏幕上显示文字 这里提供利用HDC设置字体的方法,并且提供两种绘制模式,矩阵无关和矩阵相关-in Windows environment so HDC initialization OpenGL displayed on the screen for the use of language here HDC installed fonts, and offers two rendering modes, and has nothing to do Matrix Matrix
Platform: | Size: 23314 | Author: 肖伟 | Hits:

[Other resourceRaster_vb

Description: For i = 0 To PicMain.Height MaskLine = False 初始化MaskLine变量 For j = 0 To PicMain.Width CurrentColor = GetPixel(PicMain.hdc, j, i) 取得当前所在点的颜色值 If j < PicMain.Width Then TwoColor = GetPixel(PicMain.hdc, j + 1, i) 取得当前所在点前面一点的值, 用途是当是一条很宽的线条把图象围起来时不会误判 End If If CurrentColor = RGB(A, B, C) And TwoColor <> CurrentColor Then 当遇到一条线条时 MaskLine = True MaskLine变量赋值为True LineCounts = 0 LineCounts作用是计算剩余线条的数量 For k = j + 1 To PicMain.Width 开始向后循环, 计算线条的数量 OtherColor = GetPixel(PicMain.hdc, k, i) 取得颜色值 If k < PicMain.Width Then OtherTwoColor = GetPixel(PicMain.hdc, k + 1, i) 取得前面一点的值, 用途是当是一条很宽的线条把图象围起来时不会误判-For i = 0 To PicMain.Height MaskLine = False For variable initialization MaskLine j = 0 To PicMain.Width NR98117 tColor = GetPixel (PicMain.hdc, j, i) made the current locations of the color value If j
Platform: | Size: 3204 | Author: z | Hits:

[GDI-BitmapDrawTime

Description: 电子表控件,根据字库生成原理制作成0-9的电子表字库(二维数组).其中经典代码为读字模部分和透明显示部分.读者需要自己调用void _DrawTime(HDC hdc,int X,int Y,unsigned long color) 说明:参数color为字体颜色. 测试一下,是不是时间变漂亮了
Platform: | Size: 10767 | Author: YJJ | Hits:

[Special EffectsHough

Description: Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x,y long i,maxd int k int Dist,Alpha HGLOBAL hDistAlpha,hMyLine int *lpDistAlpha MYLINE *lpMyLine,*TempLine,MaxdLine static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)} HPEN rhp //我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。 if( NumColors!=256){ MessageBox(hWnd,\"Must be a mono bitmap with grayscale palette!\", \"Error Message\",MB_OK|MB_ICONEXCLAMATION) return FALSE }
Platform: | Size: 1911 | Author: sunrise | Hits:

[OS programhDC

Description: 可通过Windows API GetDC函数可以得到自己的hDC,但使用完,一定要用ReleaseDC功能退出。一旦你有了device context,你可用适合你的应用程序的Windows API图表来使用它。例如,在一个应用程序里,这个应用程序能够在地图点位上提供图符设制,你就可以象如下程序:
Platform: | Size: 3618 | Author: haogood | Hits:

[WEB CodeWinCETextOutput

Description: 在第一章里,例子程序HelloCE调用DrawText函数显示了一行文本。代码如下: DrawText (hdc, TEXT (\"Hello Windows CE!\"), -1, &rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE) DrawText 是一个相当高级的函数,允许由程序显示文本,而由Windows处理大部分细节。DrawText的头几个参数几乎是不言而喻,很直观。当前正在使用的设 备环境句柄被传入,同时传入的还有被TEXT宏包围的用来显示的文本,声明成Unicode字符串是为了符合Windows CE的需要。
Platform: | Size: 16744 | Author: ellick | Hits:

[CSharp34211

Description: 图像灰度的改变 void CDibView::OnZftJh() {  CClientDC pDC(this)  HDC hDC=pDC.GetSafeHdc() //获取当前设备上下文的句柄;  SetStretchBltMode(hDC,COLORONCOLOR)  CDibDoc *pDoc=GetDocument()-Grayhound change void CDibView : : OnZftJh () (CClientDC pDC (this) HDC pDC.GetSafeHdc hDC = ()// access to the current context handle equipment; SetStretchBltMode (hDC, COLORONCOLOR) CDibDoc* pDoc = Malaysia ()
Platform: | Size: 3072 | Author: hxj | Hits:

[Picture Viewerhdcjpgl

Description: 代码名称:ImageHandler: A Component to Copy an HDC Area to a JPEG File 代码说明:将DC内数据保存为JPG图片 工具/平台:VC6 -code name : ImageHandler : A Component Copy to an HDC Area to a JPEG File code Description : DC within the data retention tool for JPG Photo/Platform : VC6
Platform: | Size: 334848 | Author: 江杭州 | Hits:

[OpenGL programGLOutput

Description: 在WINDOWS环境下做HDC初始化OPENGL 在屏幕上显示文字 这里提供利用HDC设置字体的方法,并且提供两种绘制模式,矩阵无关和矩阵相关-in Windows environment so HDC initialization OpenGL displayed on the screen for the use of language here HDC installed fonts, and offers two rendering modes, and has nothing to do Matrix Matrix
Platform: | Size: 22528 | Author: 肖伟 | Hits:

[Graph DrawingRaster_vb

Description: For i = 0 To PicMain.Height MaskLine = False 初始化MaskLine变量 For j = 0 To PicMain.Width CurrentColor = GetPixel(PicMain.hdc, j, i) 取得当前所在点的颜色值 If j < PicMain.Width Then TwoColor = GetPixel(PicMain.hdc, j + 1, i) 取得当前所在点前面一点的值, 用途是当是一条很宽的线条把图象围起来时不会误判 End If If CurrentColor = RGB(A, B, C) And TwoColor <> CurrentColor Then 当遇到一条线条时 MaskLine = True MaskLine变量赋值为True LineCounts = 0 LineCounts作用是计算剩余线条的数量 For k = j + 1 To PicMain.Width 开始向后循环, 计算线条的数量 OtherColor = GetPixel(PicMain.hdc, k, i) 取得颜色值 If k < PicMain.Width Then OtherTwoColor = GetPixel(PicMain.hdc, k + 1, i) 取得前面一点的值, 用途是当是一条很宽的线条把图象围起来时不会误判-For i = 0 To PicMain.Height MaskLine = False For variable initialization MaskLine j = 0 To PicMain.Width NR98117 tColor = GetPixel (PicMain.hdc, j, i) made the current locations of the color value If j
Platform: | Size: 3072 | Author: z | Hits:

[GDI-BitmapDrawTime

Description: 电子表控件,根据字库生成原理制作成0-9的电子表字库(二维数组).其中经典代码为读字模部分和透明显示部分.读者需要自己调用void _DrawTime(HDC hdc,int X,int Y,unsigned long color) 说明:参数color为字体颜色. 测试一下,是不是时间变漂亮了-Electronic form control, in accordance with the principle of font generation into electronic form font 0-9 (two-dimensional array). In which the classical part of the code for reading and transparent matrix display. Readers need to call void _DrawTime (HDC hdc, int X, int Y, unsigned long color) Description: color for the font color parameters. test is not the time to become beautiful
Platform: | Size: 10240 | Author: YJJ | Hits:

[Special EffectsHough

Description: Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x,y long i,maxd int k int Dist,Alpha HGLOBAL hDistAlpha,hMyLine int *lpDistAlpha MYLINE *lpMyLine,*TempLine,MaxdLine static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)} HPEN rhp //我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。 if( NumColors!=256){ MessageBox(hWnd,"Must be a mono bitmap with grayscale palette!", "Error Message",MB_OK|MB_ICONEXCLAMATION) return FALSE }-Hough transform BOOL Hough (HWND hWnd) (//define a linear structure of its own typedef struct (int topx// the highest point of the x coordinates int topy// the highest point of the y coordinates int botx// the lowest point of the x coordinates int boty// lowest point of the y coordinates) MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x, y long i, maxd int k int Dist, Alpha HGLOBAL hDistAlpha, hMyLine int* lpDistAlpha MYLINE* lpMyLine,* TempLine, MaxdLine static LOGPEN rlp = ( PS_SOLID, 1,1, RGB (255,0,0)) HPEN rhp// We are dealing with is actually 256 grayscale, but only uses two colors 0 and 255. if (NumColors! = 256) (MessageBox (hWnd,
Platform: | Size: 2048 | Author: sunrise | Hits:

[OS programhDC

Description: 可通过Windows API GetDC函数可以得到自己的hDC,但使用完,一定要用ReleaseDC功能退出。一旦你有了device context,你可用适合你的应用程序的Windows API图表来使用它。例如,在一个应用程序里,这个应用程序能够在地图点位上提供图符设制,你就可以象如下程序:-Through the Windows API GetDC function can be their own hDC, but the use of END, we must withdraw from the ReleaseDC function. Once you have the device context, you can fit your application
Platform: | Size: 3072 | Author: haogood | Hits:

[DocumentsWinCETextOutput

Description: 在第一章里,例子程序HelloCE调用DrawText函数显示了一行文本。代码如下: DrawText (hdc, TEXT ("Hello Windows CE!"), -1, &rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE) DrawText 是一个相当高级的函数,允许由程序显示文本,而由Windows处理大部分细节。DrawText的头几个参数几乎是不言而喻,很直观。当前正在使用的设 备环境句柄被传入,同时传入的还有被TEXT宏包围的用来显示的文本,声明成Unicode字符串是为了符合Windows CE的需要。 -In the first chapter, the example of the procedure call DrawText function HelloCE shows the line of text. Code is as follows: DrawText (hdc, TEXT (
Platform: | Size: 16384 | Author: ellick | Hits:

[Internet-NetworkACESimpleClient005

Description: The DrawText function should not be called before CreateFont, otherwise an exception will be thrown. In order to be able to create the font, a device context should be supplied. This can be done once through a static function (SetDeviceContext): You can call that function once at the start of your program by calling CGameFont::SetDeviceContext(hDC).
Platform: | Size: 2048 | Author: 谢昭波 | Hits:

[OS DevelopMemoryLeaking

Description: 测试CDC内存泄露,改用HDC对比内存使用情况。-CDC testing memory leak
Platform: | Size: 12288 | Author: liwenshan | Hits:

[Special EffectsDrawLib

Description: 绘图库 1. 设计和实现一个图形函数库,具有绘制直线 段、任意圆弧、椭圆弧、多边形区域的阴影填 充和颜色填充等功能。(仅调用画点函数) Windows API: setpixel(hdc,x,y,color)-Drawing 1. Design and Implementation of a graphics library, with the straight-line drawing, arbitrary arc, elliptical arc, polygon area fill and color filled the shadow functions. (Just call paintings point function) Windows API: setpixel (hdc, x, y, color)
Platform: | Size: 3072 | Author: litao | Hits:

[OtherHDC-CDC-CClientDC-CPaintDCC-WindowDC

Description: 集中介绍了HDC,CDC,CClientDC,CPaintDC,CWindowDC的使用方法和区别,绘图显示效果,区分窗口客户区。-Focus on the HDC, CDC, CClientDC, CPaintDC, CWindowDC to use and distinction, graphics effects, to distinguish the window client area.
Platform: | Size: 1914880 | Author: 李华 | Hits:
« 12 3 4 »

CodeBus www.codebus.net