Click here to Skip to main content
15,888,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:00
moonraker92811-Jul-07 11:00 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:27
moonraker92811-Jul-07 11:27 
GeneralRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 11:37
Mark Salsbery11-Jul-07 11:37 
QuestionGetting the Tag Property to work for me Pin
InOut.NET11-Jul-07 7:53
InOut.NET11-Jul-07 7:53 
QuestionUSB device message detector Pin
Beveloper11-Jul-07 7:00
Beveloper11-Jul-07 7:00 
AnswerRe: USB device message detector Pin
ksrameshkanth11-Jul-07 21:59
ksrameshkanth11-Jul-07 21:59 
QuestionCut a bitmap under GDI+ Pin
Chen-XuNuo11-Jul-07 6:36
Chen-XuNuo11-Jul-07 6:36 
AnswerRe: Cut a bitmap under GDI+ Pin
Mark Salsbery11-Jul-07 9:04
Mark Salsbery11-Jul-07 9:04 
Do you mean something like this?
// CropLeft, CropTop, CropWidth, CropHeight are INTs defining the portion of the source image
// to copy to the new destination image
 
Gdiplus::Bitmap SrcBitmap(...);
...
Gdiplus::Bitmap DstBitmap(CropWidth, CropHeight, SrcBitmap.GetPixelFormat()); 
Graphics DstGraphics(&DstBitmap);
DstGraphics.DrawImage(&SrcBitmap, 0, 0, CropLeft, CropTop, CropWidth, CropHeight, UnitPixel);


Mark


Mark Salsbery
Microsoft MVP - Visual C++


This episode brought to you by the number 3

GeneralRe: Cut a bitmap under GDI+ Pin
Chen-XuNuo11-Jul-07 19:36
Chen-XuNuo11-Jul-07 19:36 
GeneralRe: Cut a bitmap under GDI+ Pin
Mark Salsbery12-Jul-07 5:08
Mark Salsbery12-Jul-07 5:08 
QuestionHelp aout paint none-client area Pin
kcynic11-Jul-07 6:22
kcynic11-Jul-07 6:22 
AnswerRe: Help aout paint none-client area Pin
DevMentor.org12-Jul-07 12:01
DevMentor.org12-Jul-07 12:01 
GeneralRe: Help aout paint none-client area Pin
kcynic13-Jul-07 1:00
kcynic13-Jul-07 1:00 
GeneralRe: Help aout paint none-client area Pin
DevMentor.org13-Jul-07 12:10
DevMentor.org13-Jul-07 12:10 
GeneralRe: Help aout paint none-client area Pin
kcynic13-Jul-07 12:26
kcynic13-Jul-07 12:26 
GeneralRe: Help aout paint none-client area Pin
DevMentor.org13-Jul-07 20:46
DevMentor.org13-Jul-07 20:46 
QuestionConvert Int to Byte Pin
simoncoul11-Jul-07 6:19
simoncoul11-Jul-07 6:19 
AnswerRe: Convert Int to Byte Pin
David Crow11-Jul-07 7:21
David Crow11-Jul-07 7:21 
AnswerRe: Convert Int to Byte Pin
Cyrilix11-Jul-07 7:21
Cyrilix11-Jul-07 7:21 
GeneralRe: Convert Int to Byte Pin
simoncoul11-Jul-07 7:52
simoncoul11-Jul-07 7:52 
GeneralRe: Convert Int to Byte Pin
Cyrilix11-Jul-07 8:13
Cyrilix11-Jul-07 8:13 
GeneralRe: Convert Int to Byte Pin
simoncoul11-Jul-07 8:25
simoncoul11-Jul-07 8:25 
QuestionParameter passsing between classes Pin
chaitannya_m11-Jul-07 6:03
chaitannya_m11-Jul-07 6:03 
AnswerRe: Parameter passsing between classes Pin
Electronic7511-Jul-07 6:10
Electronic7511-Jul-07 6:10 
GeneralRe: Parameter passsing between classes Pin
chaitannya_m11-Jul-07 6:54
chaitannya_m11-Jul-07 6:54 

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.