I am creating go.Picture to be displayed as images for the nodes based on base64 encoded images:
let picture = new go.Picture();
let base64picture = document.createElement("img");
base64picture.src = base64EncodedImageSrc;
picture.element = base64picture;
Now I would like to apply a css class in order to show the image in gray-scale.
I’ve tried several ways (.className, $(...).addClass()) of adding the class to the base64picture element but they have no effect.
Could you point me into the right direction how I could apply some css to the go.Picture?
You can take a base64 image and draw it to your own canvas, and then do whatever compositing/pixel manipulation you want on that canvas, and use that Canvas as the go.Picture source.