Background on downloading image

Hi Walter. I use Diagram.makeImageData and wanna set on background gradient. In documentation I did not find any resolves. Are there any ideas to create it? I thing using go.Brush but background may be only css color.

Yes, makeImageData only accepts CSS color strings or null for the background option.

I suppose you could temporarily place in the “Grid” Layer a Part holding a Shape that has the Brush that you want to use. You’ll need to set that Part’s position and that Shape’s desiredSize to match the area that you wanted to render.

Thanks Walter