The UMSImageWindow object is an Ultimedia Services Version 2 feature and does not apply to Ultimedia Services Version 1.2.1.
This class inherits from the UMSXWindow and UMSNegotiatorSink classes.
The UMSImageWindow object provides a way to display images in a window in X. This is a base class that can provide generic X Windowing System support. Other classes inherit from this one to provide access to hardware accelerations that are available. You must call the methods inherited from the UMSXWindow class in order to provide an active connection to an X server before using the methods defined in this class. It provides scaling of the image if it is supported in hardware. This object does not handle its own exposure events.
To learn more about the UMSImageWindow object, see:
For introductory information, see Image Window and Negotiator Objects.
enum ReturnCode { Success, Failure, NullPointer, ValueOutOfRange, ValueChanged, NotSupported, DeviceNotFound, DeviceNotAvail, DisplayNotSet, OutOfMemory, UnsupportedFormat, InvalidArgument, DeviceError, InvalidWindow };
This method sets the size of the images provided to the display_image() method. If the set_display_size() method has not been called or if the display does not support scaling then this also sets the size that the image is displayed on the screen.
in long width | The width of the images provided to the display_image() method in pixels. |
in long height | The height of the images provided to the display_image() method in pixels. |
This method allows you to get the currently set width and height for the images provided to the display_image() method.
out long width | The width of the images provided to the display_image() method in pixels. |
out long height | The height of the images provided to the display_image() method in pixels. |
This method displays the image in the window.
in Sequence<octet> image | The image to be displayed. |
This method sets the size in pixels that the image is displayed on the screen. This value can be different from the image size if the display supports scaling. The current image is not redisplayed if this is called because of a change in window size.
This method allows the caller to get the current width and height in pixels that an image is displayed.
out long width | The width in pixels. |
out long height | The height in pixels. |
For introductory information, see Image Window and Negotiator Objects.