mmmddd
December 21st, 2005, 03:00 PM
Hello, i am new to graphics, and need an easy answer
i am drawing shapes to the screen by Graphics class, and need to save the shapes at the screen into bitmap, jpg,gif or any format.
can u pls tell me how can i save the screen with Graphics class, or any method to save thye screen, or the region on the screen
my code is like that;
Graphics __gc * gp=CreatGraphic();
Pen __gc *PenBlack=new Pen(Color::Black,2);
gp->DrawLine(PenBlack,10,10,100,100);
gp->DrawLine(PenBlack,50,50,100,200);
//----------
// here i need to save the shapes at the screen or part of screen
//----------
please give a quick code to achive this
thanks for who deals :)
i am drawing shapes to the screen by Graphics class, and need to save the shapes at the screen into bitmap, jpg,gif or any format.
can u pls tell me how can i save the screen with Graphics class, or any method to save thye screen, or the region on the screen
my code is like that;
Graphics __gc * gp=CreatGraphic();
Pen __gc *PenBlack=new Pen(Color::Black,2);
gp->DrawLine(PenBlack,10,10,100,100);
gp->DrawLine(PenBlack,50,50,100,200);
//----------
// here i need to save the shapes at the screen or part of screen
//----------
please give a quick code to achive this
thanks for who deals :)