There is no built-in function in the Pascal class, but you could add a transform to the IMG element access via WebImageControl.ElementHandle as explained in the article here:
You can also use CSS if you don't want to implement the JS calls mentioned above.
You could define some styles with what you need, and apply it to some elements as needed (it can be applied not only to images).
I've got a few of them on the form, and the user clicks a button and it loads one, then the next, then the next, and so forth.
Are there any properties I can set or clear on the component before setting the URL property to have the image rotated 180 degrees so it's upside-down if that's what I want? I don't know what happens if you change some of those properties at run-time, like ElementClassName or ElementID.
As an aside, what's the best way to clear an image in a TWebImage when the user resets/clears the form? In VCL, you'd say xyz.Picture.Bitmap.Free, but that doesn't work here. Setting URL := '' leaves something in the top-left corner of the image area, so there's something left over.
A browser IMG image element with no URL displays always with a small no-image icon. This is the default browser behavior. You could set the image as small transparent PNG for example with:
So I'd declare Style tags as shown above, then put them into the ElementClassName property when i reload the image? If I want nothing, then I'd clear that property?
Where's the best place to put those Style tags? Into a component somewhere? Or the index.html file? Or somewhere else?