Abhishek Narula wrote: I think you have understood my problem !! I think I have to, but I don't think you've understood my replies... Abhishek Narula wrote: I have made some drawing on my CDC , using LineTo etc .. functions .. now I want to save this drwaing as Bitmap file which I can open in MS-Paint. So.... if you created the CDC, and selected a bitmap into it ( and if you created a CDC and DIDN'T select a bitmap into it, then the CDC contains a 1x1x1 bitmap ), then you already have the CBitmap, if you got the CDC from OnPaint or similar ( it's the background of a dialog box, say ), then you need to either call GetCurrentBitmap or create a new CDC/CBitmap pair to copy this bitmap across. Also, if you're creating the bitmap, creating a DIBSection will allow you to save it at any bit depth, instead of just that of the screen. You can do that with Chris Maunders DIBSection class, which is on CP. Abhishek Narula wrote: Can I do this ?? rather I am sure we can do this .. but How ? thats the question. Both Nish and I have pointed you to the FAQ, he even kindly looked up the URL ( I was too lazy ). The whole point of having a FAQ would be negated if we went off and quoted it to people unwilling to read it, don't you think ? If you've read the FAQ and are still confused, please explain which bit is not making sense to you, and I'll be happy to clarify. You can also look up my GDI+ articles or the CXImage class here on CP, two solutions offered on this site ( some of the solutions in the FAQ are not on CP ). Abhishek Narula wrote: Any way thanks a lot for all the pains that you have taken to reply !! I am always glad to help. If you are stuck after reading the FAQ, don't hesitate to ask again. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now