G
Guest
Hello!
I would like copy my control in a bitmap and after in a jpeg.
I have an error of gdi!
This is my code
System.IntPtr intPtr = this.RichTextBox.Handle;
System.Drawing.Image img = Bitmap.FromHbitmap(intPtr);
img.Save(@"Mypath\test.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
Have you got any idea?
Best regards,
Wavemill
I would like copy my control in a bitmap and after in a jpeg.
I have an error of gdi!
This is my code
System.IntPtr intPtr = this.RichTextBox.Handle;
System.Drawing.Image img = Bitmap.FromHbitmap(intPtr);
img.Save(@"Mypath\test.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
Have you got any idea?
Best regards,
Wavemill