Name
xloadimage, xsetbg, xview - load images into an X11 window or onto the root window
Synopsis
The units for Turbo Pascal 6.0 are also available here. The version 1.8, that includes support for DJGPP V2, a few extra functions, and is compatible with version 1.7, is available here. The required files from the DJGPP distribution, and some more, can be obtained locally from here. XnView is a multi-platform software used for viewing, converting and manipulating graphic files. It supports more than 400 image file formats, is free of charge for private usage, easy to use. Viewxview0.7 Returns: Real. This variable can be used to get or to set the x axis position for the view in the room. By changing this value you can set the view to a new position, with (0,0) being the upper left corner of the room, or you can reference this variable to ensure that an instance is always drawn at a relative. Viewxview0.7 Returns: Real. This variable can be used to get or to set the x axis position for the view in the room. By changing this value you can set the view to a new position, with (0,0) being the upper left corner of the room, or you can reference this variable to ensure that an instance is always drawn at a relative.
xloadimage [global_options] {[image_options] image ..}
xloadimage [global_options] [image_options] stdin < image
xloadimage [global_options] [image_options] stdin < image
Description
Xloadimage displays images in an X11 window, loads them onto the root window, or writes them into a file. Many image types are recognized; use the-supported option to list them.
If the filename stdin is given, xloadimage will read the image from standard input if this capability is supported by the loader for that image type(most types do support reading from stdin).
If the destination display cannot support the number of colors in the image, the image will be dithered (monochrome destination) or have its colormapreduced (color destination) as appropriate. This can also be done forcibly with the -halftone, -dither, and -colors options.
A variety of image manipulations can be specified, including gamma correction, brightening, clipping, dithering, depth-reduction, rotation, and zooming.Most of these manipulations have simple implementations; speed was opted for above accuracy.
If you are viewing a large image in a window, the initial window will be at most 90% of the size of the display unless the window manager does not correctlyhandle window size requests or if you've used the -fullscreen option. You may move the image around in the window by dragging with the first mousebutton. The cursor will indicate which directions you may drag, if any. You may exit the window by typing 'q' or '^C' when the keyboard focus is on the window.
If more than one image file is specified on the command line, each image will be shown in order (except if -merge or -goto are being used).
A wide variety of common image manipulations can be done by mixing and matching the available options. See the section entitled HINTS FOR GOOD IMAGEDISPLAYS for some ideas.
![Xview Xview](https://media.arxiv-vanity.com/render-output/3807723/output.png)
The -dump option causes an image to be written to a file rather than displayed after processing. This allows you to read an image, perform a numberof processing operations on it, and save the resultant image. This also allows translation from any of the recognized image types into any of the formats thatsupport dumping.
Xsetbg is equivalent to xloadimage -onroot -quiet and xview is equivalent to xloadimage -view -verbose.
Resource Class
Xloadimage uses the resource class name Xloadimage for window managers which need this resource set. This name changed in version 2.00 and2.01; some previous versions used the name XLoadImage (which was difficult to predict) or xloadimage (which conflicted with class namingconventions).
Global Options
The following options affect the global operation of xloadimage. They may be specified anywhere on the command line. Additionally the -globaloption can be used to force an image option to apply to all images.
Talk to the X server in synchronous mode. This is useful for debugging. If an X error is seen while in this mode, a core will be dumped.
Force image to use the default visual and colormap. This is useful if you do not want technicolor effects when the colormap focus is inside the imagewindow, but it may reduce the quality of the displayed image. This is on by default if -onroot or -windowid is specified.
-fork
Fork xloadimage. This causes xloadimage to disassociate itself from the shell. This option automatically turns on -quiet.
List the images which are along the image path.
-onroot
Load image(s) onto the root window instead of viewing in a window. This option automatically sets the -fit option. This is the opposite of -view.XSetbg has this option set by default.
-path
Displays miscellaneous information about the program configuration. This option is obsolete and has been replaced by -configuration.
-pixmap
Force the use of a pixmap as backing-store. This is provided for servers where backing-store is broken (such as some versions of the AIXWindows server). Itmay improve scrolling performance on servers which provide backing-store.
Forces xloadimage and xview to be quiet. This is the default for xsetbg, but the others like to whistle.
View image(s) in a window. This is the opposite of -onroot and the default for xview and xloadimage.
Image Options
The following options may precede each image. These options are local to the image they precede.
Convert an image to grayscale. This is very useful when displaying colorful images on servers with limited color capability. It can also be used to converta bitmap image into a grayscale image, although the resulting image will be smaller than the original. The optional spelling -grey may also beused.
Merge this image onto the base image after local processing. The base image is considered to be the first image specified or the last image that was notpreceded by -merge. If used in conjunction with -at and -clip, very complex images can be built up. This option is on by default for allimages if the -onroot or -windowid options are specified.
Tile this image (after any necessary merging or tiling) to create a fullscreen image. This is usually used to create a large background image on which tomerge other images. -geometry can be used to set the new image size to something other than -fullscreen.
Examples
To load the rasterfile 'my.image' onto the background and replicate it to fill the entire background:
If using a monochrome display and a color image you will probably want to dither the image for a cleaner (and faster) display:
xloadimage -default -tile -dither my.image
Hints For Good Image Displays
Since images are likely to come from a variety of sources, they may be in a variety of aspect ratios which may not be supported by your display. The-xzoom and -yzoom options can be used to change the aspect ratio of an image before display. If you use these options, it is recommended that youincrease the size of one of the dimensions instead of shrinking the other, since shrinking looses detail. For instance, many GIF and G3 FAX images have an X:Yratio of about 2:1. You can correct this for viewing on a 1:1 display with either -xzoom 50 or -yzoom 200 (reduce X axis to 50% of its size andexpand Y axis to 200% of its size, respectively) but the latter should be used so no detail is lost in the conversion.
When zooming color images up you can reduce blockiness with -smooth. For zooms of 300% or more, I recommend two smoothing passes (although this cantake awhile to do on slow machines). There will be a noticeable improvement in the image.
You can perform image processing on a small portion of an image by loading the image more than once and using the -merge, -at and -clipoptions. Load the image, then merge it with a clipped, processed version of itself. To brighten a 100x100 rectangular portion of an image located at (50,50),for instance, you could type:
Paths And Extensions
The file ~/.xloadimagerc (and optionally a system-wide file) defines a number of configuration options that affect xloadimage.
This file is split into three section, the path section, the extension section, and the filter section. The sections are identified bytyping the section name followed by an equals sign, eg 'path ='.
The path statement is used to provide a set of search paths to use when looking for an image of a specified name. Separate each path in the list bywhitespace (eg one or more spaces, tabs, or newlines). The path is searched in the order it is specified. For example:will first look for the image name you specified, then look for the name in ~/images (the tilde is expanded to the value of $HOME), then in/usr/local/images, then in user fred's home directory. This allows easy use of image repositories.
The extension statement is used to provide a set of default extensions to use when looking for an image of a specified name. Separate each extensionin the list by whitespace. The extensions are searched in the order in which they are specified. For example:If you have a file named myimage.gif you could specify the name myimage and xloadimage would append the .gif extension automatically.
The filter statement is used to describe filter programs, such as 'uncompress', which are to be applied to image files automatically. You specify onefilter program and any number of recognized extensions following the filter keyword. For example:specifies that the program uncompress should be used as a filter whenever an image file has a .Z extension. By default filters are provided forcompressed (.Z) files and GNU zip (.gz) files. See the FILTERS section for more information on defining your own filters.
1.6 Counter-strike Download
Any text on a line following a hash-mark (#) is ignored; if you wish to use a hash-mark in a path, extension, or filter you can escape it using a backslash().
If you wish to include white-space in a filter program name, path, or extension you can enclose the entire text in double-quotes. For example:Use backslash () characters to allow inclusion of double-quote marks or newlines.
The following is a sample ~/.xloadimagerc file:
Image Types
Xloadimage currently supports many common and some uncommon image types, and can create images in several formats. For a complete list use the-supported option.
Dumping Images
Several image dumpers are included that can be used to create a new image after loading and processing. The NIFF (Native Image File Format) is the simplestand creates images that xloadimage can read the fastest; it is essentially a copy of the internal image format.
Some image dumpers allow options that affect the image output. These options are appended to the image type following a comma and are separated by commas.If a value is desired it can be specified following an equals-sign. For example, to create a monochrome JPEG image file with a quality factor of 80, you woulduse the following command line:Option names can be abbreviated but if the abbreviation is too short to be unique the option which will be used is indeterminate.
Filters
Xloadimage supports automatic filtering by recognizing file extensions. By default 'compress' and 'gzip' files are recognized and their names passed toappropriate commands to decompress them.
The xloadimage distribution includes a special 'smart' uudecoder, called uufilter that can be used to automatically uudecode files for processing.Uufilter ignores extraneous lines in the file so it is particularly useful if the uuencoded file was created by concatenating email or news postingsthat had headers or line-break indicators included.
To make use of uufilter you can add the following to your .xloadimagerc file:The filter will be automatically invoked on any file with a .uu or .uue extension.
For a list of filters automatically recognized by xloadimage use the -configuration option.
Supported Image Options
The JPEG image dumper supports the following options:
Adjust the quality of the image to be created. The default quality factor is 75; lower values create poorer images.
The PBM image dumper supports the following options:
normalDump a normal (ascii) PBM/PPM file.
raw
Dump a RawBits format PBM/PPM file. This is the default and results in significantly smaller image files than when using normal.
There is no way to dump a PGM format file or a 'compact' PBM format file (sorry).The TIFF image dumper supports the following options:
Xview 1 6 0 Download
Author
For a more-or-less complete list of other contributors (there are a lot of them), please see the README file enclosed with thedistribution.Files
Copyright
Copyright © 1989, 1993 Jim Frost and others.
Xloadimage is copyrighted material with a very loose copyright allowing unlimited modification and distribution if the copyright notices are leftintact. Various portions are copyrighted by various people, but all use a modification of the MIT copyright notice. Please check the source for completecopyright information. The intent is to keep the source free, not to stifle its distribution, so please write to me if you have any questions.
Bugs
Zooming dithered images, especially downwards, is UGLY.
Images can come in a variety of aspect ratios. Xloadimage cannot detect what aspect ratio the particular image being loaded has, nor the aspect ratioof the destination display, so images with differing aspect ratios from the destination display will appear distorted. See HINTS FOR GOOD IMAGE DISPLAYSfor more information.
The GIF format allows more than one image to be stored in a single GIF file, but xloadimage will only display the first.
Only GIF87a format is supported.
One of the pseudonyms for xloadimage, xview, is the same name as Sun uses for their SunView-under-X package. This will be confusing if you'reone of those poor souls who has to use Sun's XView. Iina vs vlc.
Some window managers do not correctly handle window size requests. In particular, many versions of the twm window manager use the MaxSize hint instead ofthe PSize hint, causing images which are larger than the screen to display in a window larger than the screen, something which is normally avoided. Someversions of twm also ignore the MaxSize argument's real function, to limit the maximum size of the window, and allow the window to be resized larger than theimage. If this happens, xloadimage merely places the image in the upper-left corner of the window and uses the zero-value'ed pixel for any space whichis not covered by the image. This behavior is less-than-graceful but so are window managers which are cruel enough to ignore such details.
SunOS XView calctool
X Window System graphics stack
XView is a widget toolkit from Sun Microsystems introduced in 1988. It provides an OPEN LOOK user interface for X Window System applications, with an object-oriented application programming interface (API) for the C programming language. Its interface, controls, and layouts are very close to that of the earlier SunView window system, making it easy to convert existing applications from SunView to X. Sun also produced the User Interface Toolkit (UIT), a C++ API to XView.
The XView source code has been freely available since the early 1990s, making it the 'first open-source professional-quality X Window System toolkit'.[1] XView was later abandoned by Sun in favor of Motif (the basis of CDE), and more recently GTK+ (the basis of GNOME).
XView was reputedly the first system to use right-button context menus,[1] which are now ubiquitous among computer user interfaces.
See also[edit]
References[edit]
- ^ abIan Darwin. 'Ian Darwin: Computing History, Myths and Legends'. Retrieved 2008-06-15.
This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the 'relicensing' terms of the GFDL, version 1.3 or later.
Further reading[edit]
- Ian Darwin, et al, X Window System User's Guide, OPEN LOOK Edition (O'Reilly & Associates, unpublished) Volume 3OL
- Dan Heller, XView Programming Manual (O'Reilly & Associates, 1991) ISBN0-937175-87-0Volume 7
- Thomas Van Raalte, ed. XView Reference Manual (O'Reilly & Associates, 1991) ISBN0-937175-88-9Volume 7b
Retrieved from 'https://en.wikipedia.org/w/index.php?title=XView&oldid=869495790'