1 -- File: AlienImage.cdl
2 -- Created: Tue Jul 27 18:51:28 1993
3 -- Author: Jean Louis FRENKEL
5 ---Copyright: Matra Datavision 1993
9 ---Purpose: This package allows importation of images
10 -- from some other format into CAS.CADE format.
22 ------------------------
23 ---Category: The classes
24 ------------------------
26 deferred class AlienImage;
27 ---Purpose: Define the general methods on AlienImage
29 deferred class AlienImageData ;
30 ---Purpose: Internal Definition of AlienImage.
32 deferred class AlienUserImage ;
33 ---Purpose: Public Definition of AlienImage.
35 -- class PSAlienImage;
36 ---Purpose: Definition of PostScript AlienImage.
39 ---Purpose: Private definition of Sun Raster File .rs AlienImage.
41 class SunRFAlienImage;
42 ---Purpose: Public definition of Sun Raster File .rs AlienImage.
44 class EuclidAlienData;
45 ---Purpose: Private definition of Euclid .pix AlienImage.
47 class EuclidAlienImage;
48 ---Purpose: Public definition of Euclid .pix AlienImage.
50 class SGIRGBAlienData;
51 ---Purpose: Private definition of SGI .rgb AlienImage.
53 class SGIRGBAlienImage;
54 ---Purpose: Public definition of SGI .rgb AlienImage.
56 class X11XWDAlienData;
57 ---Purpose: Private definition X11 .xwd AlienImage .
60 ---Purpose: Public definition X11 .xwd AlienImage.
63 ---Purpose: Private definition of Aida .i AlienImage .
66 ---Purpose: Public definition of Aida .i AlienImage.
68 class MemoryOperations;
69 ---Purpose: A set of function to swap byte in memory, used for
70 -- comaptibility between LSBFirst and MSBFirst .
75 private class BMPAlienData;
76 ---Purpose: Private definition of windows .bmp AlienImage.
78 private class GIFAlienData;
79 ---Purpose: Private definition of windows .gif AlienImage.
82 ---Purpose: Public definition of windows .bmp AlienImage.
85 ---Purpose: Public definition of windows .gif AlienImage.
90 ---Category: Imported types:
95 imported X11XWDFileHeader ;
96 imported SGIRGBFileHeader ;
97 imported SUNRFFileHeader ;
99 enumeration SUNRFFormat is SUNRF_Old,
105 ---Purpose: Type of code for a SUNRF image.
107 ----------------------------
108 ---Category: Package methods
109 ----------------------------
110 CreateImage (theFileName : AsciiString from TCollection;
111 theImage : out Image from Image)
112 returns Boolean from Standard;
115 CreateImage (theFileName : CString from Standard;
116 theImage : out Image from Image)
117 returns Boolean from Standard;
120 CreateImage (theFile : in out File from OSD;
121 theImage : out Image from Image)
122 returns Boolean from Standard;
125 LoadImageFile (anImageFile : CString from Standard;
126 anImage : out Image from Image;
127 aWidth : out Integer from Standard;
128 aHeight : out Integer from Standard
129 ) returns Boolean from Standard;
130 ---Purpose: Used by plotter drivers