aboutsummaryrefslogtreecommitdiff
path: root/sys/imfort/doc/imopnc.hlp
blob: b4f5d9a94e2def84fe9094780b5aff536246ff88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.help imopnc Sep86 imfort
.ih
NAME
imopnc -- open a new copy of an existing image
.ih
SYNOPSIS
.nf
imopnc (nimage, oim, nim, ier)

character*(*)	nimage		#I host name of the new image
integer		oim		#I image descriptor of existing image
integer		nim		#O image descriptor of the new image
integer		ier		#O status return
.fi
.ih
DESCRIPTION
The \fIimopnc\fR procedure is used to open a new copy of an existing image,
copying the non-pixel fields of the old image header to the new image.
The new image must be the same size and datatype as the old image.
The new image is created, the header information is copied, and the pixel
file is allocated, but no pixel data is copied, and the \fIdatamin\fR and
\fIdatamax\fR fields of the image header are reset to zero.  The new image
is opened for read-write access and the image descriptor of the new image
is returned in \fInim\fR.
.ih
RETURN VALUE
A zero status value is returned if the operation is successful, i.e., if
\fIoim\fR is a valid image descriptor of an existing image already opened
with \fIimopen\fR or \fIimopnc\fR, the new image was successfully created,
and the header was successfully copied.

.nf
IE_ACCPIX:	error writing into pixel file during image create
IE_ALCPIX:	cannot create or allocate space for pixel file
IE_CREHDR:	cannot create image
IE_MAGIC:	illegal imfort image descriptor
IE_OPEN:	cannot open image
IE_OPNPIX:	cannot open pixel file
IE_UPDHDR:	error updating image header file
.fi
.ih
NOTES
If it is desired that the new image be of a different size or datatype than
the old image, the new image must be explicitly created with \fIimcrea\fR,
opened with \fIimopen\fR, and the old header copied with \fIimhcpy\fR.
.ih
SEE ALSO
imcrea, imopen, imgsiz, imhcpy, imclos
.endhelp