Many of these questions are related to ZScripting only the the sense that I want to use them from a ZScript; it’s quite possible that I simply haven’t figured out how to do them using the UI (obviously, if I knew that, I could just record and use the ZScript commands), but on the other hand I will be using this stuff in a ZScript, so if there are scripting abilities not accessible from the UI, I would be quite happy to use those also. None of the existing ZScript commands do these things, from what I can infer from their descriptions.
The basic goal is load an image, and display it with its proper proportions within the canvas, and with the ability to scale it and move it within the canvas. Some combination of any of the following abilities would be useful to me:
-
The ability to import the image with the width/height proportion constrained to remain fixed.
-
The ability to get the dimensions of an image.
-
The ability to get the dimensions of a texture map (an image imports into a texture at full, unchanged size, so this would be a way to get the dimensions of an image.)
-
The ability to create a Plane3D whose initial size corresponds to a height and width given in pixels.
Thanks in advance,
Ken