We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grouping symbol problem

Thread ID:





89549 Aug 28,2009 06:02 AM UTC Sep 1,2009 09:44 AM UTC WinForms 3
Tags: Diagram
kim dugsung
Asked On August 28, 2009 06:02 AM UTC


When I try to group symbols over 7, the bottom symbol is not visible. How can I solve this problem.
Attached file is screen capture.

p.s: I know that group symbol has child nodes over 7,
rendering image is made by following class for performance of moving group symbol. And I think that below "HandleRenderer.cs",
the function name "RenderToBitmap" has a bug. please help me.

public static Bitmap RenderToBitmap(ICompositeNode nodeComposite, RenderingStyle styleRender)
// Get nodes bounding rectangle.
NodeCollection nodes = GetNodes(nodeComposite);
RectangleF rcBounding = ((IUnitIndependent)nodeComposite).GetBoundingRectangle(MeasureUnits.Pixel, false);
RectangleF rectTemp = RectangleF.Empty;

if (nodeComposite is Node)
rectTemp = ((Node)nodeComposite).RefreshRect;
rectTemp.Size = ((IUnitIndependent)nodeComposite).GetSize(MeasureUnits.Pixel);
float fLineWidth = Math.Abs(rcBounding.X - rectTemp.X) * 2;
rectTemp.Width += fLineWidth;
rectTemp.Height += fLineWidth;
GetBoundingRectangle(nodes, MeasureUnits.Pixel);

rectTemp.X -= rcBounding.X;
rectTemp.Y -= rcBounding.Y;
System.Drawing.Rectangle rectBounding = Geometry.ConvertRectangle(rectTemp);
// Render nodes to bitmap.
// create bitmap
Bitmap bitmapToReturn = new Bitmap(rectBounding.Width, rectBounding.Height);

// get graphics to render to
using (Graphics gph = Graphics.FromImage(bitmapToReturn))
gph.SmoothingMode = styleRender.SmoothingMode;
gph.TextRenderingHint = styleRender.TextRenderingHint;
gph.InterpolationMode = styleRender.InterpolationMode;

if (rectBounding.X < 0)
gph.TranslateTransform(Math.Abs(rectBounding.X), 0, MatrixOrder.Append);
if (rectBounding.Y < 0)
gph.TranslateTransform(0, Math.Abs(rectBounding.Y), MatrixOrder.Append);
foreach (Node node in nodes)

return bitmapToReturn;

kim dugsung
Replied On August 28, 2009 06:20 AM UTC

this is a capture image


kim dugsung
Replied On August 30, 2009 07:26 AM UTC

Please help me~

Mano J [Syncfusion]
Replied On September 1, 2009 09:44 AM UTC

Hi Kim,

I need more details on this problem. From the image you have provided, I assume you created lines, curved lines and trying to group it.

Please let me know if I am missing something.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon