Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (OMath math in doc.Content.OMaths)
- {
- math.Range.Select();
- math.Range.CopyAsPicture();
- System.Windows.Forms.IDataObject dobj = System.Windows.Forms.Clipboard.GetDataObject();
- if( dobj.GetDataPresent(typeof(System.Drawing.Bitmap)) )
- {
- System.Drawing.Bitmap bitmap = (Bitmap)dobj.GetData(typeof(System.Drawing.Bitmap));
- bitmap.Save("C:\tempFolder\Image" + cnt + ".bmp", ImageFormat.Bmp);
- }
- cnt++;
- }
Add Comment
Please, Sign In to add comment