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

C / C++ / MFC

 
QuestionStack Overflow / Windows CE Newbie Pin
egerving9-Dec-09 12:01
egerving9-Dec-09 12:01 
AnswerRe: Stack Overflow / Windows CE Newbie Pin
Luc Pattyn9-Dec-09 12:36
sitebuilderLuc Pattyn9-Dec-09 12:36 
GeneralRe: Stack Overflow / Windows CE Newbie Pin
egerving10-Dec-09 7:31
egerving10-Dec-09 7:31 
QuestionHow do you merge multiple bitmap files? Pin
Dale Haessel9-Dec-09 10:30
Dale Haessel9-Dec-09 10:30 
AnswerRe: How do you merge multiple bitmap files? Pin
loyal ginger9-Dec-09 10:34
loyal ginger9-Dec-09 10:34 
GeneralRe: How do you merge multiple bitmap files? Pin
Dale Haessel9-Dec-09 17:04
Dale Haessel9-Dec-09 17:04 
GeneralRe: How do you merge multiple bitmap files? Pin
loyal ginger9-Dec-09 17:53
loyal ginger9-Dec-09 17:53 
GeneralRe: How do you merge multiple bitmap files? Pin
LunaticFringe9-Dec-09 19:22
LunaticFringe9-Dec-09 19:22 
loyal ginger wrote:
You can first calculate the target image's size based on all the small images' sizes, then create a blank image of the target size in memory. After that, load the small images one by one into memory, then render them to appropriate locations in the target image in memory.

For this purpose, the GDI+ Image class is your friend. If you like the old method, then device independent bitmap (DIB) can be used instead.


Rather than using image classes or DIBs and rendering into the new image, an alternative would be to use DIBSections. This would allow access to the raw pixel data, which could then be copied (and manipulated in any desired manner in the process) directly into the target pixels, avoiding the complexities of creating memory DC's, selecting images into them, blitting, inadvertently creating GDI resources leaks, etc, etc.

And I'm afraid Paul DiLascia, writer of PixieLib and countless invaluable MSDN articles, is no more.

Rose | [Rose]
AnswerRe: How do you merge multiple bitmap files? Pin
Sauce!9-Dec-09 13:50
Sauce!9-Dec-09 13:50 
AnswerRe: How do you merge multiple bitmap files? Pin
KarstenK9-Dec-09 21:55
mveKarstenK9-Dec-09 21:55 
QuestionCMenu what the scrolling menu buttons named ? Pin
Maximilien9-Dec-09 9:52
Maximilien9-Dec-09 9:52 
AnswerRe: CMenu what the scrolling menu buttons named ? Pin
KarstenK9-Dec-09 21:57
mveKarstenK9-Dec-09 21:57 
QuestionCan't get local system time to show in a StatusStrip label Pin
spicture9-Dec-09 9:18
spicture9-Dec-09 9:18 
AnswerRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan9-Dec-09 9:52
mveRichard MacCutchan9-Dec-09 9:52 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture10-Dec-09 6:51
spicture10-Dec-09 6:51 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan10-Dec-09 7:18
mveRichard MacCutchan10-Dec-09 7:18 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:23
spicture11-Dec-09 8:23 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:20
spicture11-Dec-09 8:20 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan12-Dec-09 1:30
mveRichard MacCutchan12-Dec-09 1:30 
AnswerRe: Can't get local system time to show in a StatusStrip label Pin
loyal ginger9-Dec-09 10:37
loyal ginger9-Dec-09 10:37 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture10-Dec-09 6:45
spicture10-Dec-09 6:45 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:22
spicture11-Dec-09 8:22 
Questionmouse in openGL, double click ?? Pin
a04.lqd9-Dec-09 8:33
a04.lqd9-Dec-09 8:33 
Questiondoubt in CFile Pin
Rakesh59-Dec-09 6:27
Rakesh59-Dec-09 6:27 
AnswerRe: doubt in CFile Pin
Jonathan Davies9-Dec-09 6:51
Jonathan Davies9-Dec-09 6:51 

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.