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

Search list

[Dialog_WindowBeautifulFace

Description: 一个华丽的界面 使用方法 方法一: ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME ) //设置图标 方法二: 不用上面的,但是要去掉对话框的title属性 void CPageDlg::OnPaint() { if (IsIconic()) { ... } else { // CDialog::OnPaint() //一定要去掉该句 CPaintDC dc(this) //对话框的dc CDC dcMem dcMem.CreateCompatibleDC(&dc) //创建与对话框dc兼容的内存dc CRect rect GetClientRect(&rect) BITMAP bitMap m_bmpBackground.GetBitmap(&bitMap) CBitmap *pbmpOld=dcMem.SelectObject(&m_bmpBackground) //将背景位图选入内存dc中 dc.StretchBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,bitMap.bmWidth,bitMap.bmHeight,SRCCOPY) //将内存dc中的位图拉伸显示在对话框的dc中 //dc.BitBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,SRCCOPY) } } -a gorgeous interface to use a method : ModifyStyle (WS_CAPTION, WS_MINIMIZEBOX. SWP_DRAWFRAME) / / Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) else (/ / CDia log : : OnPaint () / / must remove the sentence CPaintDC dc (this) / / Dialog dc CDC dcMem dcMem.CreateCompatibleDC (
Platform: | Size: 148507 | Author: 黄景天 | Hits:

[File Operatenotview

Description: 文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette RealizePalette GetDIBits ReleaseDC CreateFile WriteFile GlobalUnlock GlobalFree CloseHandle CPaintDC CBitmap CreateCompatibleDC CreateCompatibleBitmap PtInRect BitBlt DeleteObject CPoint ShowWindow ClientToScreen GetWindowDC GetWindowRect CFileDialog CWinApp CSingleDocTemplate CCommandLineInfo UpdateWindow CDialog CDataExchange CDocument CView CPrintInfo GetClientRect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary CreateDialog-document View, CFrameWnd CWnd CStatic CRect MoveWindow Creat ePen CSize CDC SetBkMode SelectObject CPen Lin eTo SetTextColor CString TextOut CFont Back Font DrawText CreateDC GetDeviceCaps DeleteD C GetObject GlobalAlloc GlobalLock GetStockO bject GetDC RealizePalette Get SelectPalette DIBits ReleaseDC CreateFile WriteFile Global Unlock GlobalFree CloseHandle CPaintDC CBitm ap CreateCompatibleDC CreateCompatibleBitm ap PtInRect BitBlt DeleteObject CPoint ShowWi ndow ClientToScreen GetWindowDC GetWindowRe ct CFileDialog CWinApp CSingleDocTemplate CC ommandLineInfo UpdateWindow CDialog CDataEx change CDocument CView CPrintInfo GetClientR ect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary Cre ateDialog
Platform: | Size: 26729 | Author: slansam | Hits:

[Embeded-SCM DevelopCDC3

Description: 双缓冲即在内存中创建一个与屏幕绘图区域一致的对象,先将图形绘制到内存中的这个对象上,再一次性将这个对象上的图形拷贝到屏幕上,这样能大大加快绘图的速度。双缓冲实现过程如下: 1、在内存中创建与画布一致的缓冲区 BufferBmp=new Graphics::TBitmap() BufferBmp->Canvas->Handle=CreateCompatibleDC(Canvas->Handle) BufferBmp->Width=Width BufferBmp->Height=Height 2、在缓冲区画图 BufferBmp->Canvas->Brush->Color=clBtnFace BufferBmp->Canvas->FillRect(Rect(0,0,Width,Height)) BufferBmp->Canvas->MoveTo(…) ………………………… 3、将缓冲区位图拷贝到当前画布上 BitBlt(Canvas->Handle,0,0,Width,Height,BufferBmp->Canvas->Handle,0,0,SRCCOPY) 4、释放内存缓冲区 delete BufferBmp
Platform: | Size: 2754 | Author: Michael | Hits:

[Graph Drawing利用文件直接显示BMP

Description: 利用读文件的方式直接读取BMP方式。比普通方式更加简单,明了。-read documents using direct read BMP way. More than ordinary means simple, straightforward.
Platform: | Size: 1189888 | Author: 马木木 | Hits:

[Dialog_WindowBeautifulFace

Description: 一个华丽的界面 使用方法 方法一: ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME ) //设置图标 方法二: 不用上面的,但是要去掉对话框的title属性 void CPageDlg::OnPaint() { if (IsIconic()) { ... } else { // CDialog::OnPaint() //一定要去掉该句 CPaintDC dc(this) //对话框的dc CDC dcMem dcMem.CreateCompatibleDC(&dc) //创建与对话框dc兼容的内存dc CRect rect GetClientRect(&rect) BITMAP bitMap m_bmpBackground.GetBitmap(&bitMap) CBitmap *pbmpOld=dcMem.SelectObject(&m_bmpBackground) //将背景位图选入内存dc中 dc.StretchBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,bitMap.bmWidth,bitMap.bmHeight,SRCCOPY) //将内存dc中的位图拉伸显示在对话框的dc中 //dc.BitBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,SRCCOPY) } } -a gorgeous interface to use a method : ModifyStyle (WS_CAPTION, WS_MINIMIZEBOX. SWP_DRAWFRAME)// Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) else (//CDia log : : OnPaint ()// must remove the sentence CPaintDC dc (this)// Dialog dc CDC dcMem dcMem.CreateCompatibleDC (
Platform: | Size: 148480 | Author: 黄景天 | Hits:

[File Formatnotview

Description: 文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette RealizePalette GetDIBits ReleaseDC CreateFile WriteFile GlobalUnlock GlobalFree CloseHandle CPaintDC CBitmap CreateCompatibleDC CreateCompatibleBitmap PtInRect BitBlt DeleteObject CPoint ShowWindow ClientToScreen GetWindowDC GetWindowRect CFileDialog CWinApp CSingleDocTemplate CCommandLineInfo UpdateWindow CDialog CDataExchange CDocument CView CPrintInfo GetClientRect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary CreateDialog-document View, CFrameWnd CWnd CStatic CRect MoveWindow Creat ePen CSize CDC SetBkMode SelectObject CPen Lin eTo SetTextColor CString TextOut CFont Back Font DrawText CreateDC GetDeviceCaps DeleteD C GetObject GlobalAlloc GlobalLock GetStockO bject GetDC RealizePalette Get SelectPalette DIBits ReleaseDC CreateFile WriteFile Global Unlock GlobalFree CloseHandle CPaintDC CBitm ap CreateCompatibleDC CreateCompatibleBitm ap PtInRect BitBlt DeleteObject CPoint ShowWi ndow ClientToScreen GetWindowDC GetWindowRe ct CFileDialog CWinApp CSingleDocTemplate CC ommandLineInfo UpdateWindow CDialog CDataEx change CDocument CView CPrintInfo GetClientR ect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary Cre ateDialog
Platform: | Size: 26624 | Author: slansam | Hits:

[Linux-Unixminigui-free

Description:
Platform: | Size: 5830656 | Author: 我电子 | Hits:

[OS programHello

Description: CDC *pMemDC = new CDC() pMemDC->CreateCompatibleDC(pScreenDC) //然后创建位图: CBitmap *pBitmap = new CBitmap() pBitmap->CreateCompatibleBitmap(pScreenDC, pRect->Width(), pRect->Height()) # pRect为用户选取的范围 CBitmap *pOldBitmap = pMemDC->SelectObject(pBitmap) //之后就可以把指定区域的内容复制到位图中。 - CDC*pMemDC = new CDC() pMemDC->CreateCompatibleDC(pScreenDC) //然后创建位图: CBitmap*pBitmap = new CBitmap() pBitmap->CreateCompatibleBitmap(pScreenDC, pRect->Width(), pRect->Height()) # pRect为用户选取的范围 CBitmap*pOldBitmap = pMemDC->SelectObject(pBitmap) //之后就可以把指定区域的内容复制到位图中。
Platform: | Size: 13497344 | Author: enge | Hits:

[Special EffectsVCyuandaimachengxu

Description: 车牌识别程序,准确定位车牌,真正实现了车牌识别的程序 -CDocument CString CFile CFileDialog CFileFind FindNextFile CScrollView CDC CPen CSize CBitmap CBrush CRect GetClientRect LoadBitmap CreatePatternBrush SelectObject FillRect DeleteObject GetObject BitBlt CreateCompatibleDC CreateSolidBrush CreatePen LineTo TextOut CPrintInfo CreatePalette SelectPalette SetStretchBltMode SetDIBitsToDevice StretchDIBits wsprintf ZeroMemory CWnd CDialog CDataExchange GetWindowRect CPaintDC Rectangle CRichEditCtrl InvalidateRect UpdateWindow
Platform: | Size: 2519040 | Author: zhangyongjian | Hits:

[source in ebookpingmujiequ

Description: 其实原理就是捕获屏幕画面然后再把图像传给客户机。原理很简单: 1、先利用hdc=GetWindowDC(NULL) 得到桌面的hdc 2、memhdc=CreateCompatibleDC(hdc) 根据桌面的hdc创建一个和屏幕相同的内存DC 3、StretchBlt(memhdc,0, 0, nWid,nHei, hdc, 0, 0,nWid,nHei, SRCCOPY) ,把屏幕的图像复制到内存DC这时你已经在内存中得到了屏幕的图像了。这是设备相关的DDB图像,如果希望转换成设备无关的DIB图像,只要在DDB图像前创建一个标准的BITMAP文件头就可以了(DDBtoDIB( bitmap, BI_RGB, pal ))。 4、得到图像数据(如果考虑速度的话可以把图像压缩) 5、数据传输(远程监控) “在这里,我们先来看看截获当前桌面是如何实现的。关于远程捕获,只要在下面的基础上加上网络传输部分就OK了。下面介绍的是捕获桌面技术的基础,具体截屏代码如下: -In principle is to capture screen picture then pictures to the client. Principle is very simple: 1, first using HDC detected by FCM (NULL) GetWindowDC = Get the desktop HDC detected by FCM 2, memhdc = CreateCompatibleDC (HDC detected by FCM), According to the desktop HDC detected by FCM create a same memory DC and screen 3 and StretchBlt (0, 0, memhdc, nWid, nHei, 0, 0, HDC detected by FCM, nWid, nHei SRCCOPY) , The screen, the image to the memory when you are already in memory DC got screen image. This is related to the equipment, if hope DDB image converted image of device-independent DIB in DDB images, before creating a BITMAP standard file header can (DDBtoDIB BITMAP, Pal, BI_RGB (). 4 and image data (if consider speed can put the image compression) 5 and data transmission (remote monitoring) "Here, we ll look at how the desktop is intercepted. About remote capture, just below the basis and network transmission parts with respect to OK. Here is the foundation, the desktop
Platform: | Size: 2048 | Author: xushuangjay | Hits:

[GDI-Bitmapzt

Description: VB连续截屏,调用CreateDC,CreateCompatibleDC-VB continuous screenshots
Platform: | Size: 2048 | Author: peteransh | Hits:

[Windows DevelopTextOnBmp

Description: VC++在BMP图片上显示文本,是一个VC++窗口绘图的例子,JPG格式图片未做测试。显示文字主要是使用TextOut方法,完整的过程是:定义位图对象,加载背景位图,获取位图信息(图像宽度和高度),获取窗口客户区域,获取窗口设备上下文,定义一个内存设备上下文,CreateCompatibleDC方法创建与pDC兼容的设备上下文,选中位图对象在窗口中绘图,设置透明的背景模式,输出文本-VC++ to display text on the BMP picture window is a VC++ examples of graphics, JPG format picture without making tests. The main display text using TextOut method, a complete process: define bitmap objects, load background bitmap, get bitmap information (image width and height), access to the client area of ​ ​ a window, the window to get the device context, the definition of a memory device context, CreateCompatibleDC way to create a compatible device context pDC, select the bitmap object in the drawing window, set transparent background mode, the output text
Platform: | Size: 328704 | Author: apudn83 | Hits:

[ComboBoxerr.eccc

Description: CWnd LoadCursor CPaintDC CRect GetClientRect GetTickCount waveInAddBuffer MessageBox waveInOpen waveInPrepareHeader waveInStart waveInReset waveInStop waveInUnprepareHeader waveInClose waveInGetErrorText CView CCmdUI CDialog CDataExchange CString CComboBox SetDlgItemText GetDlgItem CheckDlgButton GetDlgItemText IsDlgButtonChecked GetDC CDC CPen SelectObject LineTo ReleaseDC GetWindowRect ScreenToClient MoveWindow CFrameWnd SetFocus CWinApp GetModuleFileName ShowWindow UpdateWindow CBitmap CFont DeleteDC CreateCompatibleDC DeleteObject CreateCompatibleBitmap CreatePen SetBkColor DrawText SetTextColor BitBlt GetProfileInt ZeroMemory WriteProfileString GetProfileString
Platform: | Size: 1911808 | Author: prinick | Hits:

CodeBus www.codebus.net