Export to image 2

Developer
Jul 14, 2011 at 4:24 PM
Edited Jul 14, 2011 at 4:25 PM

In order to export always with a white backgroud you should do the following to the ExportToPicture method in the FormsDocument.cs, in Crainiate.Diagramming.Forms:

Replace the line that's defined as render RenderDiagram(renderRect, new Paging()); with the following:

Paging _p = new Paging ( );
_p.WorkspaceColor = Color.White;
_p.SetPageOffset ( new Point ( 0, 0 ) );
_p.SetWorkspaceOffset ( new Point ( 0, 0 ) );
render.RenderDiagram(renderRect, _p);