13.07.2015 Views

DISLIN 8.4

DISLIN 8.4

DISLIN 8.4

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Routineimgini ()imgmod (cmod)imgsiz (nw, nh)cbuf,n = rbfpng (nmax)rbmp (cfil)rgif (cfil)rimage (cfil)iclr = rpixel (ix, iy)rpixls (iray, ix, iy, nw, nh)rpng (cfil)rppm (cfil)rpxrow (iray, nx, ny, n)rtiff (cfil)tiforg (nx, ny)tifwin (nx, ny, nw, nh)wimage (cfil)wpixel (ix, iy, iclr)wpixls (iray, ix, iy, nw, nh)wpxrow (iray, nx, ny, n)wtiff (cfil)Meaninginitializes transfering of image data.selects index or RGB mode.defines an image size for PostScript/PDF output.stores an image as PNG file in a buffer. The memoryfor the buffer is allocated by rbfpng.stores an image as a BMP file.stores an image as a GIF file.copies an image from memory to a file.reads a pixel from memory.reads image data from memory.stores an image as a PNG file.stores an image as a PPM file.reads a row of image data from memory.stores an image as a TIFF file.defines the position of TIFF files copied with WTIFF.defines a clipping window for TIFF filescopied with WTIFF.copies an image from file to memory.writes a pixel to memory.writes image data to memory.write a row of image data to memory.copies a TIFF file created by <strong>DISLIN</strong> to memory.Figure A.29: Image RoutinesA.30 Window RoutinesRoutineclswin (id)opnwin (id)selwin (id)winapp (capp)window (nx, ny, nw, nh)id = winid ()winkey (ckey)winmod (copt)winsiz (nw, nh)wintit (cstr)x11mod (copt)Meaningcloses a window.opens a window for graphics output.selects a window for graphics output.defines a window or console application.defines the position and size of windows.returns the ID of the currently selected window.defines a key that can be used for programcontinuation in DISFIN.affects the handling of windows in the terminationroutine DISFIN.defines the size of windows.sets the title of the currently selected window.enables backing store.Figure A.30: Window Routines29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!