Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: who uses local mysql database with visual c++? Pin
Saurabh.Garg16-Sep-09 4:25
Saurabh.Garg16-Sep-09 4:25 
GeneralRe: who uses local mysql database with visual c++? Pin
includeh1016-Sep-09 7:46
includeh1016-Sep-09 7:46 
GeneralRe: who uses local mysql database with visual c++? Pin
Saurabh.Garg16-Sep-09 15:24
Saurabh.Garg16-Sep-09 15:24 
QuestionCreate new bitmap from oldbitmap Pin
Game-point16-Sep-09 3:18
Game-point16-Sep-09 3:18 
AnswerRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 3:28
Code-o-mat16-Sep-09 3:28 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 3:31
Game-point16-Sep-09 3:31 
GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 3:33
Code-o-mat16-Sep-09 3:33 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 3:54
Game-point16-Sep-09 3:54 
i have one image file which contains 5 buildings ..i want to cut and save only the 5th building ,other four buildings are not shown in the image.

but when we are save the image 5th building not shown other four buildings are shown in the image...

this is my code snippet::
<code>
	HDC pDC=::GetDC(0);
HDC TmpDC=CreateCompatibleDC(pDC);
CImage _image;
_image.Load(_T("//read.tif"));
int width=_image.GetWidth();
int height=_image.GetHeight();
HGDIOBJ TmpObj2 = SelectObject(TmpDC,(HGDIOBJ)(HBITMAP)_image);			
Rectangle(TmpDC, 0,0, width/2, height/2 );
SelectObject(TmpDC,TmpObj2);
_image.Save( _T("D:\\newy.jpg"), Gdiplus::ImageFormatBMP);
::ReleaseDC(NULL,pDC);

</code>


~~~~~~~~~~~~~Raju~~~~~~~~~~~~~


GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 4:16
Code-o-mat16-Sep-09 4:16 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 4:22
Game-point16-Sep-09 4:22 
GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 5:01
Code-o-mat16-Sep-09 5:01 
AnswerRe: Create new bitmap from oldbitmap Pin
Nuri Ismail16-Sep-09 5:02
Nuri Ismail16-Sep-09 5:02 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 20:46
Game-point16-Sep-09 20:46 
GeneralRe: Create new bitmap from oldbitmap [modified] Pin
Nuri Ismail16-Sep-09 22:04
Nuri Ismail16-Sep-09 22:04 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 22:36
Game-point16-Sep-09 22:36 
GeneralRe: Create new bitmap from oldbitmap Pin
Nuri Ismail16-Sep-09 22:50
Nuri Ismail16-Sep-09 22:50 
QuestionHow to put MFC View full screen on second monitor? Pin
Jeff Archer16-Sep-09 2:36
Jeff Archer16-Sep-09 2:36 
GeneralRe: How to put MFC View full screen on second monitor? Pin
Iain Clarke, Warrior Programmer16-Sep-09 3:20
Iain Clarke, Warrior Programmer16-Sep-09 3:20 
QuestionMFC app does not show full screen Pin
m_mun16-Sep-09 2:20
m_mun16-Sep-09 2:20 
QuestionRe: MFC app does not show full screen Pin
David Crow16-Sep-09 2:24
David Crow16-Sep-09 2:24 
AnswerRe: MFC app does not show full screen Pin
m_mun16-Sep-09 3:00
m_mun16-Sep-09 3:00 
QuestionNeed help on TAPI3.0 with some sample programs Pin
John50216-Sep-09 1:53
John50216-Sep-09 1:53 
Questionfiles after compilation Pin
hrishiS16-Sep-09 1:35
hrishiS16-Sep-09 1:35 
AnswerRe: files after compilation Pin
Stephen Hewitt16-Sep-09 1:49
Stephen Hewitt16-Sep-09 1:49 
GeneralRe: files after compilation Pin
hrishiS16-Sep-09 2:22
hrishiS16-Sep-09 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.