Hi is there a way where I can use the Diagram.makeImage to give me a high resolution image , so that the texts are readable , the resolution doesnt matter , it can be as high as high as possible .
i dont think increasing the scale is causing any difference to the image , thats why I posted both the images (one image was with scale 2 and the other was with scale 5) as a reply to
it seems maxSize :new go.Size(NaN,NaN) , instead of maxSize :new go.Size(Infinity,Infinity) worked but now I am not able to get the complete image because NaN points to (2000) default size, if i use Infinity scaling is not working
I was unable to reproduce the problem before when using size: new go.Size(Infinity, Infinity), and I just tried it again in a different diagram. And it worked well again. This is the code I executed:
function makeImage() {
var img = myDiagram.makeImage({
background: "brown",
scale: 2.5,
maxSize: new go.Size(Infinity, Infinity)
});
document.getElementById("myImageDiv").appendChild(img);
}
where the new DIV element was defined by:
<div id="myImageDiv"></div>
and there is no styling applied to that DIV element.
Furthermore when I look at the two images that you created with scales of 2 and 5 and infinite maxSize, they look fine to me – the text is quite large and sharp. Not in this forum, of course, where the image elements are automatically limited in size to fit.
So I believe you have some problem in how you are handling the resulting image. That’s not a fault of GoJS.