No display large image

i have a problem while displaying images. I use Picture as below:
$(go.Picture,
{ desiredSize: new go.Size(16, 16), margin: new go.Margin(2,8,2,2)},
new go.Binding(“source”, “source”)
)

if the image dimension is 16x16 then the image is displayed fine. But for bigger dimension, image only be visible when i zoom in (It depends on the initial scale ratio of the graph, with more nodes, more zoom in is required).

I want image always show, do not need graph zoom in. How can I achieve this?

I’m not sure what you want. Here are some ideas:

  • If you want the Picture to have the same size as the natural size of the image, don’t set Picture.desiredSize.
  • You can set the Picture’s scale too.
  • You can put the Picture inside a “Viewbox” Panel, so that it is automatically scaled to fit in a given area. GoJS Panels -- Northwoods Software

Thank you for your help!