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. Image for the cookie policy date
close icon

Grouping symbol problem

Hello.

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;
}
else
{
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)
{
node.Draw(gph);
}
}

return bitmapToReturn;
}

3 Replies

KD kim dugsung August 28, 2009 06:20 AM UTC

this is a capture image



capture_3d1398d9.jpg


KD kim dugsung August 30, 2009 07:26 AM UTC

Please help me~


MJ Mano J Syncfusion Team 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.

Regards,
Mano

Loader.
Live Chat Icon For mobile
Up arrow icon