os_input_image |
An os_input_image
displays an image and accepts a single pixel selection from the image within an os_form
. In this way, an os_input_image is like an os_image
mapped through a CGI program. However, when selected, an os_input_image
behaves like an os_input_submit button.
The source URL of the displayed
image is specified in a constructor and can be modified through the source()
member function. The URL typically references an image in the GIF or JPEG
format. The alignment of the image with respect to surrounding text can be
specified through either a constructor or the align()
member function.
An os_input_image
is identified within an os_form by a name. The name
is specified in a constructor and can be modified through the name()
member function. When the form is transmitted, two name/value pairs specifying
the coordinates of the selected image pixel are transmitted for the os_input_image
. The pair names are constructed by appending . x
and . y to the os_input_image
name. The pair values are the x and y coordinates of the selected image pixel,
measured in pixels from the upper left corner of the image.
An os_form
can contain multiple os_input_image elements.
However, only the coordinate name/value pairs from the selected os_input_image
are transmitted when the os_form is submitted.
enum os_input_image::alignment
{
top, // Aligns the top of image with the line's text.
middle, // Aligns the middle of image with the line's text.
bottom, // Aligns the bottom of the image with the line's text.
};
os_element::use_default
if not set.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved