// $Revision: 1.1 $ #include "GraphicDocumentStationery.h" #include // // Makeit testingcomplete // to compile this as an application. Give it the name of a .gif file and // a document name as the arguments, respectively. // // The .gif file must be in the current working directory _AND_ in // $TaligentBinaries to work correctly. // The document name can't currently be in use. // void main(int argc, char* argv[]) { if (argc != 3) { qprintf("Syntax: %s \n", argv[0]); } else { TGIFConverter converter; TFileSegment file(argv[1]); TModifiableImage* image = converter.CreateFrom(file); TStandardText documentName(argv[2]); TGraphicDocumentStationery::OpenGraphicDocument((MGraphic*)image, documentName); } }