Hello,
I have a flowchart diagram Node on which I want to draw a bmp.
I'm using the flowChart.DrawNode event and using the DrawNodeEventArgs to retrieve the graphics and draw the image on it:
public void flowChart_DrawBox(object sender, DrawNodeEventArgs e)
{
// bmp is an image generated on the fly
e.Graphics.DrawImage(bmp, Rectangle.Ceiling(e.Bounds));
}
The bmp used is the same exact size as the node bounds, and when I save the bmp to a file to take a look it is tack sharp (using paint at 100%), however the node shows it blurred without definition.
I have set all graphics parameters like:
e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
e.Graphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
e.Graphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
But the problem persist.
The only way to have it renderer with an acceptable quality is generating the bmp twice the size of the node, but that is not an option as the image becomes very huge.
have I missed something? Is there anything I can do / adjust to make the node render it correctly?
thank you in advance
Gabriel