Location:
Search - Bitmap DC
Search list
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:
Description: 透明的显示位图,并用内存dc解决屏幕闪烁问题-transparent bitmap display, and memory use dc screen flicker problem solving
Platform: |
Size: 418183 |
Author: fuhan |
Hits:
Description: 一个学习DC和位图的例子,可以修改内存来变化图像,本例子使用黑白位图进行内存操作。彩色位图的与此类似。-a study DC and bitmap example, memory can be amended to change images, The examples use black-and-white bitmap memory for operation. Color bitmap similar to this.
Platform: |
Size: 30432 |
Author: Nikker |
Hits:
Description: 学习DC与位图数据的例子,可以通过直接修改内存来修改图片。本例子使用黑白位图,彩色类似。-learning DC and bitmap data example, can directly alter the memory to modify photographs. The examples use black-and-white bitmap, color similar.
Platform: |
Size: 32255 |
Author: 郝宇 |
Hits:
Description: 普通的vc绘图程序,重画内存dc位图,还没有保存功能。-ordinary vc mapping procedures, re-drawing of memory dc bitmap, no retention.
Platform: |
Size: 80736 |
Author: 顾英博 |
Hits:
Description: 当初为了调试内存和资源泄漏编写的关于GDI使用的工具,可以显示当前所有进程所使用的DC、Region、Bitmap、Palette、Font、Brush等对象的个数。-had to debug memory leakage and resources on the preparation of the tools used GDI can show all current process used by the DC, Region, Bitmap, Palette, Font, Brush number of other objects.
Platform: |
Size: 40897 |
Author: 施文彪 |
Hits:
Description: 普通的vc绘图程序,重画内存dc位图,还没有保存功能。-ordinary vc mapping procedures, re-drawing of memory dc bitmap, no retention.
Platform: |
Size: 3723264 |
Author: 顾英博 |
Hits:
Description: 当初为了调试内存和资源泄漏编写的关于GDI使用的工具,可以显示当前所有进程所使用的DC、Region、Bitmap、Palette、Font、Brush等对象的个数。-had to debug memory leakage and resources on the preparation of the tools used GDI can show all current process used by the DC, Region, Bitmap, Palette, Font, Brush number of other objects.
Platform: |
Size: 40960 |
Author: 石心 |
Hits:
Description: 在VC中将客户区图像保存到BMP位图文件 程序名称:MainFrm.c-customers in VC Lieutenant General District BMP images stored procedures bitmap file name : MainFrm.c
Platform: |
Size: 392192 |
Author: 远风 |
Hits:
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:
Description: 透明的显示位图,并用内存dc解决屏幕闪烁问题-transparent bitmap display, and memory use dc screen flicker problem solving
Platform: |
Size: 417792 |
Author: fuhan |
Hits:
Description: 一个学习DC和位图的例子,可以修改内存来变化图像,本例子使用黑白位图进行内存操作。彩色位图的与此类似。-a study DC and bitmap example, memory can be amended to change images, The examples use black-and-white bitmap memory for operation. Color bitmap similar to this.
Platform: |
Size: 29696 |
Author: |
Hits:
Description: 学习DC与位图数据的例子,可以通过直接修改内存来修改图片。本例子使用黑白位图,彩色类似。-learning DC and bitmap data example, can directly alter the memory to modify photographs. The examples use black-and-white bitmap, color similar.
Platform: |
Size: 31744 |
Author: 郝宇 |
Hits:
Description: 怎么用Memory DC对位图进行操作的源码。-Memory DC on how to use bitmaps to operate the source.
Platform: |
Size: 5120 |
Author: Depp Su |
Hits:
Description: 这是一个位图操作的类,不依赖于MFC,可以实现位图的旋转、镜像、透明、扭曲等等非常绚丽的特效,非常值得推荐。This a bitmap manipulation class that would not be MFC dependent, and would offer some extended features not present in the original MFC implementation. This class can load any 8, 16, 24 or 32bit bitmap, but internally works with 32bit bitmaps. The results can be saved as the 24bit bitmap on the hard disk, or it can be drawn on the device context (DC).-This is a bitmap type of operation, not dependent on MFC, can be achieved bitmap rotation, mirror, transparent, distortion effects, etc. is very brilliant, very worthy of recommendation. This a bitmap manipulation class that would not be MFC dependent, and would offer some extended features not present in the original MFC implementation. This class can load any 8, 16, 24 or 32bit bitmap, but internally works with 32bit bitmaps. The results can be saved as the 24bit bitmap on the hard disk, or it can be drawn on the device context (DC).
Platform: |
Size: 2335744 |
Author: 赵越 |
Hits:
Description: This sample is Bitmap DC Usage.
Platform: |
Size: 2822144 |
Author: redstarnim |
Hits:
Description: Example of how to take screenshot in windows. Uses CreateDC("DISPLAY", ...) to create DC to blit from and blits to new bitmap DC.
Platform: |
Size: 1024 |
Author: fuxx |
Hits:
Description: Small and handy bitmap wrapper. Allow to create and work with bitmap with automatically DC creation
Platform: |
Size: 1024 |
Author: brain-ripper |
Hits:
Description: 源创的代码,颜色渐变 + 漂亮字体 + 使用内存dc建立位图 + 窗口背景位图拉伸时不闪屏的方法-The source code to create, color, font+ gradient+ nice using memory dc to establish the background bitmap+ windows bitmap drawing method without splash screen
Platform: |
Size: 1723392 |
Author: HeLingPing |
Hits:
Description: 图形的绘制,如何使用自定义画笔(颜色,线宽,线形)。如何为程序中添加选项菜单和选项设置对话框,如何使用标准颜色对话框,如何使用字体对话框,在选项对话框中实现预览功能。实现选项对话框和窗口类中的数据交换。如何改变对话框和控件的背景色,如何改变控件的文本颜色,对按钮控件的特殊处理。如何在窗口中显示一幅位图。-Graphics rendering, and how to use a custom brush (color, line width, line). How to add the options menu and option settings dialog box for the program, and how to use the standard color dialog, how to use the Font dialog box, the preview function in the Options dialog box. Data exchange in the Options dialog box and window class. How to change the background color of the dialog box and control, how to change the text color of the control, the special treatment of the button control. How to display a bitmap in a window.
Platform: |
Size: 5908480 |
Author: 张三 |
Hits: