Click here to Skip to main content
15,798,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 4:31
Game-point16-Sep-09 4:31 
GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 4:33
Code-o-mat16-Sep-09 4:33 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 4:54
Game-point16-Sep-09 4:54 
GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 5:16
Code-o-mat16-Sep-09 5:16 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 5:22
Game-point16-Sep-09 5:22 
GeneralRe: Create new bitmap from oldbitmap Pin
Code-o-mat16-Sep-09 6:01
Code-o-mat16-Sep-09 6:01 
AnswerRe: Create new bitmap from oldbitmap Pin
Nuri Ismail16-Sep-09 6:02
Nuri Ismail16-Sep-09 6:02 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 21:46
Game-point16-Sep-09 21:46 
CImage imageOriginal;
imageOriginal.Load(_T( "read.tif" ));

// Here is the rect that we will copy from the original image (in this case 1/4 of it)
//CRect rectCopy(0, 0, imageOriginal.GetWidth() / 2, imageOriginal.GetHeight() / 2);

<code>CRect rectCopy(9177,68, 10566, 635);</code>

// Make a copy of the specific part
CImage imageNew;
imageNew.Create(rectCopy.Width(), rectCopy.Height(), imageOriginal.GetBPP());
imageOriginal.BitBlt(imageNew.GetDC(), rectCopy, rectCopy.TopLeft());
imageNew.Save(_T("D://imgnew.jpg"));

imageNew.ReleaseDC();



when i gave this rect portion ..the saving images contains ..full black

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


GeneralRe: Create new bitmap from oldbitmap [modified] Pin
Nuri Ismail16-Sep-09 23:04
Nuri Ismail16-Sep-09 23:04 
GeneralRe: Create new bitmap from oldbitmap Pin
Game-point16-Sep-09 23:36
Game-point16-Sep-09 23:36 
GeneralRe: Create new bitmap from oldbitmap Pin
Nuri Ismail16-Sep-09 23:50
Nuri Ismail16-Sep-09 23:50 
QuestionHow to put MFC View full screen on second monitor? Pin
Jeff Archer16-Sep-09 3:36
Jeff Archer16-Sep-09 3:36 
GeneralRe: How to put MFC View full screen on second monitor? Pin
Iain Clarke, Warrior Programmer16-Sep-09 4:20
Iain Clarke, Warrior Programmer16-Sep-09 4:20 
QuestionMFC app does not show full screen Pin
m_mun16-Sep-09 3:20
m_mun16-Sep-09 3:20 
QuestionRe: MFC app does not show full screen Pin
David Crow16-Sep-09 3:24
David Crow16-Sep-09 3:24 
AnswerRe: MFC app does not show full screen Pin
m_mun16-Sep-09 4:00
m_mun16-Sep-09 4:00 
QuestionNeed help on TAPI3.0 with some sample programs Pin
John50216-Sep-09 2:53
John50216-Sep-09 2:53 
Questionfiles after compilation Pin
hrishiS16-Sep-09 2:35
hrishiS16-Sep-09 2:35 
AnswerRe: files after compilation Pin
Stephen Hewitt16-Sep-09 2:49
Stephen Hewitt16-Sep-09 2:49 
GeneralRe: files after compilation Pin
hrishiS16-Sep-09 3:22
hrishiS16-Sep-09 3:22 
GeneralRe: files after compilation Pin
David Crow16-Sep-09 3:27
David Crow16-Sep-09 3:27 
AnswerRe: files after compilation Pin
Rozis16-Sep-09 14:10
Rozis16-Sep-09 14:10 
Questiontop down and bottom up apporach Pin
hrishiS16-Sep-09 2:30
hrishiS16-Sep-09 2:30 
AnswerRe: top down and bottom up apporach Pin
Nuri Ismail16-Sep-09 2:48
Nuri Ismail16-Sep-09 2:48 
QuestionIn System Tray Icon Ballon not displayed in Windows XP. Pin
Le@rner16-Sep-09 1:41
Le@rner16-Sep-09 1:41 

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.