kishk91
asked on
making 1 bitmap out of X bitmaps..
Hi there..
Imagine that you have 3 bitmaps.
1 bitmap is the top of the drawing. the second bitmap is the bottom of the drawing and the third bitmap is the middle bitmap.
the first 2 is fixed hich mean it will always be in the top and the bottom.
The middle should be added dynamicly.
What im trying to do is somekind of toold bar that the background of it will be this 3 bitmaps..
I need to dynamicly add the middle one according to the number of buttons that i have..
I hope that im clear enough..
Please.. ill appriciate any suggestion..
Many thanks
kishk91
Imagine that you have 3 bitmaps.
1 bitmap is the top of the drawing. the second bitmap is the bottom of the drawing and the third bitmap is the middle bitmap.
the first 2 is fixed hich mean it will always be in the top and the bottom.
The middle should be added dynamicly.
What im trying to do is somekind of toold bar that the background of it will be this 3 bitmaps..
I need to dynamicly add the middle one according to the number of buttons that i have..
I hope that im clear enough..
Please.. ill appriciate any suggestion..
Many thanks
kishk91
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well.. what exactly is it you need?
Do you want to combine several bitmaps into 1? Then just a few StretchBlt/BitBlt calls as above will to the question.
Do you wantto paint several bitmaps onto your dialog/window/whatever? Then the same thing, but done in your OnEraseBkgnd or OnPaint call (say).
If I'm missing the point of the question, then plesae clarify so I can help you further.
Do you want to combine several bitmaps into 1? Then just a few StretchBlt/BitBlt calls as above will to the question.
Do you wantto paint several bitmaps onto your dialog/window/whatever? Then the same thing, but done in your OnEraseBkgnd or OnPaint call (say).
If I'm missing the point of the question, then plesae clarify so I can help you further.
ASKER
HI..
I know to how the handle OnEraseBkgnd() i use it alot..
im drawing my own windows and creting regions from the bitmaps..
What i asked ijust imagine you have photo shop.. and you open 3 bitmaps..
now you create EMPTY one and copy/paste the others into it...
when youll save it youll have i big bmp that contains the others...
I hope this is cleaere...
Thanks for replying..
kishk
I know to how the handle OnEraseBkgnd() i use it alot..
im drawing my own windows and creting regions from the bitmaps..
What i asked ijust imagine you have photo shop.. and you open 3 bitmaps..
now you create EMPTY one and copy/paste the others into it...
when youll save it youll have i big bmp that contains the others...
I hope this is cleaere...
Thanks for replying..
kishk
ASKER
Just one more thing...
Its obvious that i need to do it via code...
;-)
Its obvious that i need to do it via code...
;-)
Yes .. you do exactly the same sort of thing to draw onto another bitmap as you do when doing OnEraseBkgnd.
The only difference is that you create the destination bitmap and a compatible DC, then draw into that just as you would in your on erase bkgnd code.
I prefer to use 24bit DIB's for my bitmaps. There are no problems / extra code to handle palletes, they are easy to create and read/write from/to files etc
The only difference is that you create the destination bitmap and a compatible DC, then draw into that just as you would in your on erase bkgnd code.
I prefer to use 24bit DIB's for my bitmaps. There are no problems / extra code to handle palletes, they are easy to create and read/write from/to files etc
ASKER
Thank you very much for your kind help...
Best regards
kishk
Best regards
kishk
ASKER
thank you very much for the idea..
Its very acceptable..
But still id like to know if there is possible way to do what i needed?
Thanks again for your help...
Kishk91