Print Preview
-
hi.. I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform.. First it should display the print preview then it as to print the Waveform.
It astounds me how often people ask questions here that require more code than anyone will write for you in a forum reply, but don't bother to google ( which usually brings you back to an article on this same site )
Christian Graus Driven to the arms of OSX by Vista.
-
It astounds me how often people ask questions here that require more code than anyone will write for you in a forum reply, but don't bother to google ( which usually brings you back to an article on this same site )
Christian Graus Driven to the arms of OSX by Vista.
-
hi.. I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform.. First it should display the print preview then it as to print the Waveform.
button click() { capturescreen(); printpreviewdialog pd=new printpreviewdialog(); pd.showdialog(); printdocument1.print(); } bitmap memimage; graphics g=this.creategraphics(); size s=this.size; memimage=new bitmap(s.width,s.height,g); g.graphics.fromimage(memimage); g.copyfromscreen(this.location.x,this.location.y,s,0,0,s); } void printdocument1_printpage() { e.graphics.drawimage(memimage,0,0); }