home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / programming / intuitioned / imagegad.c < prev    next >
C/C++ Source or Header  |  1990-10-10  |  25KB  |  399 lines

  1. /*-----------------------------------------------------------
  2. --  Programm: ImageGad.c
  3. --     Autor: Intuition Ed 
  4. --     Datum: Sun May 13
  5. --  Funktion: Example of an Imagegadget.
  6. -- Bemerkung: Data must be in CHIP-RAM.
  7. --            The ILBM code was compiled to C by NGI.
  8. ------------------------------------------------------------/*
  9.  
  10.  
  11. #include <intuition/intuition.h>
  12.  
  13.  
  14. #define IMAGEGADGET_GAD                0
  15.  
  16.  
  17. void                   Open_All() ;
  18. void                   Close_All();
  19.  
  20.  
  21. struct IntuitionBase  *IntuitionBase;
  22. struct Window         *Window1;
  23.  
  24. UWORD Pic1Data[] =
  25. {
  26.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  27.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  28.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  29.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  30.  0xC7FF,0xFFFF,0xF7FF,0xF7F3,0xF7FF,0xF5FB,0xE5BF,0xBFF1,0x7FFF,0xFFB7,
  31.  0xC444,0x4460,0x1E23,0xE3EA,0x32D1,0x11FF,0xE9F1,0xBCFB,0x1116,0xB191,
  32.  0xDDC7,0x5C2C,0xD6BB,0xF7EA,0xF731,0x75FB,0xEDB7,0x91FB,0x5179,0xB7B5,
  33.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,  0x8000,0x0000,0x0001,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE01,
  34.  0x8000,0x7EFF,0xE201,0xFF3F,0xCFFF,0x3CFC,0xDCCF,0xF3F0,0x0000,0x0201,
  35.  0x8000,0x6FFB,0xF201,0x003F,0xDFFF,0x3CFC,0xCCCF,0xF000,0x0000,0x0201,
  36.  0x8000,0x0000,0x0001,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE01,
  37.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  38.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  39.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x8030,0x0001,  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000F,0xFF30,0x0001,
  40.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x0000,0x0001,
  41.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0040,0x0000,0x0000,0x0001,
  42.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  43.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0057,0xDFC1,0x7CE1,0x3B05,
  44.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD7,0x7CCF,0xFDFF,0xFF05,
  45.  0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,  0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  46.  0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0052,0xFCFF,0x3F3F,0xFC05,
  47.  0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0053,0xFCFF,0x3F3B,0xFC05,
  48.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDF,0xFFFF,0xFFFF,0xFFFD,
  49.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005C,0x0018,0xF180,0x0C35,
  50.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0x3F3F,0xCCFF,0xFFF5,
  51.  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0050,0x0000,0x001E,0x00C5,  0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  52.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD0,0x0000,0x0000,0x0005,
  53.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  54.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  55.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  56.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0053,0xF3FC,0xC000,0x0005,
  57.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD3,0xF3FC,0xC000,0x0005,  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  58.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x000C,0xF800,0x3035,
  59.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x000F,0xCFF3,0x3F35,
  60.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0205,
  61.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDF,0xFFFF,0xFFFF,0xFFFD,
  62.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  63.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  64.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  65.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDC,0x0000,0x0000,0x0005,
  66.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005C,0x0000,0x0000,0x0005,
  67.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  68.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  69.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD0,0x0000,0x0000,0x0005,
  70.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  71.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  72.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
  73.  0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
  74.  0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x0000,0x0001,
  75.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  76.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  77.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  78.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  79.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  80.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  81.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  82.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  83.  0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
  84.  0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  85.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  86.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  87.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  88.  
  89.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  90.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  91.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  92.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  93.  0x3800,0x0000,0x0800,0x080C,0x0800,0x0A04,0x1A40,0x400E,0x8000,0x0048,  0x3BBB,0xBB9F,0xE1DC,0x1C15,0xCD2E,0xEE00,0x160E,0x4304,0xEEE9,0x4E6E,
  94.  0x2238,0xA3D3,0x2944,0x0815,0x08CE,0x8A04,0x1248,0x6E04,0xAE86,0x484A,
  95.  0x0003,0x8000,0x0038,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  96.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  97.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  98.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  99.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  100.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  101.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x03F8,
  102.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0xC000,0x0000,0x0110,
  103.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x2000,0x0000,0x00E0,
  104.  0x1FFF,0xFF7F,0xFFFB,0xF87C,0x060E,0x0180,0xC007,0xF000,0x0000,0x0040,
  105.  0x1E47,0x60E4,0x7619,0xF87F,0xFFFF,0xFFFF,0xE000,0x0000,0x0000,0x0000,  0x1FFF,0xFFFF,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  106.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  107.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  108.  0x0445,0x41C4,0x5433,0x0000,0xD826,0x3000,0x0000,0x0000,0x0000,0x0000,
  109.  0x07FD,0xFF7F,0xDFFF,0x807F,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,
  110.  0x0000,0x0000,0x0000,0x0063,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000,
  111.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x1FFF,0xFFFF,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  112.  0x1FF8,0xFFCF,0xFFFF,0xF800,0xD826,0x0003,0x0000,0x0000,0x0000,0x0000,
  113.  0x1002,0x0007,0xFFFF,0xF87F,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0000,
  114.  0x1FFF,0x0FFF,0xFFFF,0xF863,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000,
  115.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  116.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  117.  0x0006,0x000C,0x0000,0x0000,0xD820,0x6030,0x0000,0x0000,0x0000,0x0000,  0x0FFF,0xFFFE,0x0000,0x007F,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,0x0000,
  118.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  119.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  120.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  121.  0x0FFC,0xC000,0x0000,0x007F,0xFFFF,0xEE00,0x0000,0x0000,0x0000,0x0000,
  122.  0x0FFF,0xE000,0x0000,0x00FF,0xFFDF,0xFE00,0x0000,0x0000,0x0000,0x0000,
  123.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  124.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  125.  0x0FFC,0xC000,0x0000,0x007F,0xFFFF,0xFFB8,0x0000,0x0000,0x0000,0x0000,
  126.  0x0FFD,0xE000,0x0000,0x00FF,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,0x0000,
  127.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  128.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x0000,0x0000,0x0000,
  129.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x0000,0x0000,0x0000,  0x0FF3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  130.  0x0FFF,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  131.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  132.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  133.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  134.  0x0FFF,0xFFFE,0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  135.  0x0FFF,0xFFFF,0xE000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  136.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  137.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  138.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  139.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  140.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  141.  0x03FF,0xFFE3,0xFFFF,0xE000,0x0000,0x0000,0x001F,0xFFFF,0xE7FF,0xFFF8,  0x0200,0x0022,0x0000,0x2000,0x0000,0x0000,0x0010,0x0000,0x6600,0x0008,
  142.  0x0275,0xFC22,0x37AC,0x2000,0x0000,0x0000,0x0010,0x6D80,0x660D,0xF808,
  143.  0x023F,0x1C22,0x2DFC,0x2000,0x0000,0x0000,0x0010,0x4E80,0x660F,0xB808,
  144.  0x0200,0x0022,0x0000,0x2000,0x0000,0x0000,0x0010,0x0000,0x6600,0x0008,
  145.  0x03FF,0xFFE3,0xFFFF,0xE000,0x0000,0x0000,0x001F,0xFFFF,0xE7FF,0xFFF8,
  146.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  147.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  148.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  149.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  150.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
  151. };
  152.  
  153. UWORD Pic2Data[] =
  154. {
  155.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  156.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  157.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  158.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  159.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  160.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  161.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  162.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  163.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  164.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  165.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  166.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  167.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  168.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  169.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  170.  0x0000,0x0000,0x000F,0xE0FC,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  171.  0x0000,0x0000,0x003F,0xF1FE,0x0000,0x1E00,0x0000,0x1C00,0x0000,0x0000,
  172.  0x0000,0x0000,0x003F,0xF1FE,0x0000,0x3E00,0x0F80,0x3F80,0x0000,0x0000,
  173.  0x0000,0x0000,0x001F,0xE1FE,0x0000,0x7E00,0x1FC0,0x7FC0,0x0000,0x0000,  0x0000,0x0000,0x000F,0xE0FC,0x0001,0xFE00,0x3FE0,0xFFE0,0x0000,0x0000,
  174.  0x0000,0x0000,0x000F,0xF1FC,0x0001,0xFE00,0x7FF0,0xFFE0,0x0000,0x0000,
  175.  0x0000,0x0000,0x0007,0xF1F8,0x0001,0xFE00,0x7FF1,0xFBF0,0x0000,0x0000,
  176.  0x0000,0x0000,0x0007,0xF1F8,0x0000,0x3E00,0xFDF9,0xFBF0,0x0000,0x0000,
  177.  0x0000,0x0000,0x0007,0xF1F0,0x0000,0x2000,0x0CF9,0xF1F0,0x0000,0x0000,
  178.  0x0000,0x0000,0x0000,0x0010,0x0000,0x3E00,0xF801,0xF1F0,0x0000,0x0000,
  179.  0x0000,0x0000,0x0003,0xFBF0,0x0000,0x3E00,0xF8F9,0xF000,0x0000,0x0000,  0x0000,0x0000,0x0003,0xFBF0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
  180.  0x0000,0x0000,0x0001,0xFFF0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
  181.  0x0000,0x0000,0x0001,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
  182.  0x0000,0x0000,0x0001,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
  183.  0x0000,0x0000,0x0000,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
  184.  0x0000,0x0000,0x0000,0xFFC0,0x0000,0x3E00,0xF8F9,0xFBF0,0x0000,0x0000,
  185.  0x0000,0x0000,0x0000,0xFFC0,0x0000,0x3E00,0xFDF9,0xFBF0,0x0000,0x0000,  0x0000,0x0000,0x0000,0x7FC0,0x0000,0x7F00,0xFDF8,0xFF00,0x0000,0x0000,
  186.  0x0000,0x0000,0x0000,0x7F80,0x0000,0xFFBF,0x7FF0,0xC060,0x0000,0x0000,
  187.  0x0000,0x0000,0x0000,0x7F80,0x0000,0xFFFF,0x3FE0,0x1FC0,0x0000,0x0000,
  188.  0x0000,0x0000,0x0000,0x0300,0x0000,0xFFBF,0x0000,0x3F80,0x0000,0x0000,
  189.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0FC0,0x0000,0x0000,0x0000,
  190.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  191.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  192.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  193.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  194.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  195.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  196.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  197.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  198.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  199.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  200.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  201.  0x0000,0x7800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,
  202.  0x0000,0xFF80,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0006,0x0000,
  203.  0x0007,0xA078,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0x8000,  0x0007,0x0087,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0x8000,
  204.  0x0007,0x00FB,0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x018D,0x8000,
  205.  0x0003,0x83F0,0xC000,0x0000,0x0000,0x0000,0x0000,0x0002,0x03CB,0x0000,
  206.  0x0001,0xC700,0x7000,0x0000,0x0000,0x0000,0x0000,0x0004,0x331B,0x0000,
  207.  0x0001,0xC700,0x3818,0x0000,0x0000,0x0000,0x0000,0x0000,0xC336,0x0000,
  208.  0x0000,0x7700,0x3838,0x6000,0x0000,0x0000,0x0000,0x004C,0xC630,0x0000,
  209.  0x0000,0x39E0,0x3831,0xF860,0x0000,0x0000,0xE000,0x0C9D,0xC600,0x0000,  0x0000,0x0640,0x7873,0xB9F3,0xC001,0x8C7F,0xC00F,0xEDBB,0x8400,0x0000,
  210.  0x0000,0x0798,0xF063,0xFB37,0xE001,0xDC0C,0xF38C,0xFF33,0x0000,0x0000,
  211.  0x0000,0x007F,0xA0E0,0x737E,0x6003,0xD839,0xB6EC,0xFE70,0x0000,0x0000,
  212.  0x0000,0x0004,0x01C0,0xE0EC,0x6003,0x7831,0x7CF8,0x6C00,0x0000,0x0000,
  213.  0x0000,0x0000,0x0001,0x81CD,0xE003,0x7073,0x2FF0,0xE000,0x0000,0x0000,
  214.  0x0000,0x0000,0x0000,0x0383,0xC00E,0xF166,0xE330,0x0000,0x0000,0x0000,
  215.  0x0000,0x0000,0x0000,0x0000,0x0002,0x61E6,0x0000,0x0000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  216.  
  217.  0x0000,0x0000,0x0000,0x0000,0x001F,0xFFFE,0x0000,0x0000,0x0000,0x0000,
  218.  0x0000,0x0000,0x0000,0x0000,0x7FFF,0xFFFF,0xFE00,0x0000,0x0000,0x0000,
  219.  0x0000,0x0000,0x0000,0x000F,0xFFFF,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,
  220.  0x0000,0x0000,0x0000,0x01FF,0xFFFF,0xF7FF,0xFFFF,0x8000,0x0000,0x0000,
  221.  0x0000,0x0000,0x0000,0x0FFF,0xFFFF,0x0387,0xFFFF,0xF000,0x0000,0x0000,  0x0000,0x0000,0x0000,0x7FFF,0xF0FC,0x0180,0x7FFF,0xFE00,0x0000,0x0000,
  222.  0x0000,0x0000,0x0003,0xFFFF,0x01F0,0x00C0,0x0FFF,0xFFC0,0x0000,0x0000,
  223.  0x0000,0x0000,0x001F,0xFFF8,0x03C0,0x0040,0x01F8,0xFFF0,0x0000,0x0000,
  224.  0x0000,0x0000,0x007F,0xFFE0,0x0780,0x0040,0x007E,0x1FFC,0x0000,0x0000,
  225.  0x0000,0x0000,0x01FF,0xFF80,0x0700,0x0060,0x003F,0x03FF,0x0000,0x0000,
  226.  0x0000,0x0000,0x07FC,0xFE00,0x0E00,0x0020,0x000F,0x80FF,0xC000,0x0000,
  227.  0x0000,0x0000,0x0FF1,0xF800,0x1C00,0x0020,0x0007,0xC03F,0xE000,0x0000,  0x0000,0x0000,0x3FC7,0xE000,0x1800,0x0020,0x0001,0xE00F,0xF800,0x0000,
  228.  0x0000,0x0000,0xFF0F,0xC01F,0xFFFF,0xFF7F,0x0000,0xF003,0xFE00,0x0000,
  229.  0x0000,0x0001,0xFE1F,0x0FFE,0x3000,0x001F,0xFF00,0x7800,0xFF00,0x0000,
  230.  0x0000,0x0003,0xFC3F,0xFF00,0x6000,0x0010,0x07F8,0x3800,0x7F80,0x0000,
  231.  0x0000,0x0007,0xF83F,0xE000,0x6000,0x0010,0x003F,0xFC00,0x1FC0,0x0000,
  232.  0x0000,0x000F,0xF1FE,0x0000,0x6000,0x0010,0x0001,0xFE00,0x0FF0,0x0000,
  233.  0x0000,0x001F,0xEFF0,0x20C0,0x4000,0x0010,0x0000,0x1FC0,0x07F0,0x0000,  0x0000,0x003F,0xFFC0,0x3006,0xC000,0x1C10,0x0000,0x03FC,0x03F8,0x0000,
  234.  0x0000,0x007F,0xFFFC,0x301E,0xC000,0x3C10,0x0E00,0x07FF,0x81FC,0x0000,
  235.  0x0000,0x00FF,0xFBFC,0x1EFE,0x8000,0x3C00,0x1800,0x07CF,0xE0FE,0x0000,
  236.  0x0000,0x00FF,0xE7F0,0x1FFC,0x8003,0xC008,0xC9E3,0x0003,0xF8FE,0x0000,
  237.  0x0000,0x01FF,0xC7F0,0x3E7C,0x8007,0xE009,0xF1E7,0x0000,0x7F7F,0x8000,
  238.  0x0000,0x01FF,0x03F8,0x3E00,0x800F,0xE003,0xFFEF,0x3A10,0x1FFF,0x8000,
  239.  0x0000,0x01FE,0x03F9,0x0E00,0x803F,0xA007,0x0F07,0x3A00,0x07FF,0x8000,  0x0000,0x03FE,0x03F8,0x0E1F,0xFFFF,0xBFFF,0xF2FF,0x8800,0x03FF,0xC000,
  240.  0x0000,0x03FC,0x03FF,0xFFF0,0x803F,0xBC0F,0x07FE,0x8C00,0x00FF,0xC000,
  241.  0x0000,0x03F9,0xFFFE,0x87F0,0x8007,0xBE1F,0xC707,0xEDFC,0x003F,0xC000,
  242.  0x0000,0x03FF,0x03FF,0x87F0,0x8007,0xB81F,0xE705,0xFE70,0x1F9F,0xE000,
  243.  0x0000,0x07F8,0x03FF,0x80F0,0x8007,0xB01F,0x0FC5,0xFF30,0x001F,0xE000,
  244.  0x0000,0x07F8,0x03FF,0xE0E0,0x8007,0xB81F,0x67C5,0xFF00,0x001F,0xE000,
  245.  0x0000,0x03FC,0x03FE,0x7E20,0x8007,0x801F,0xC705,0xFE00,0x01FF,0xE000,  0x0000,0x03FE,0x03BF,0x1E00,0xC007,0x801F,0xE71D,0xFE10,0x0FFF,0xE000,
  246.  0x0000,0x03FF,0x83FF,0x0000,0xC007,0x821F,0x0FFD,0xFC70,0x7F7F,0xC000,
  247.  0x0000,0x03FF,0xE1FF,0x1C00,0x4007,0xB61F,0x0FFD,0xFC77,0xF0FF,0xC000,
  248.  0x0000,0x01FF,0xFDFF,0xFFC0,0x4007,0xFF1F,0x7FFC,0xF8FE,0x01FF,0x8000,
  249.  0x0000,0x01FE,0x1FFF,0xFD80,0x6007,0x7F3C,0xFF3E,0xFF80,0x03FF,0x8000,
  250.  0x0000,0x00FF,0x01FF,0x8000,0x6007,0x3FF8,0xBF9F,0xE000,0x07FF,0x0000,
  251.  0x0000,0x00FF,0x807F,0xFC00,0x200F,0x3FB9,0xFFFF,0xE000,0x1FFF,0x0000,  0x0000,0x007F,0xC07F,0xE1FF,0xFF5F,0xFFFF,0xF39F,0xF800,0x3FFE,0x0000,
  252.  0x0000,0x007F,0xE03F,0xE000,0x101F,0xEFE7,0xFC0F,0xF800,0xFFFE,0x0000,
  253.  0x0000,0x003F,0xF81F,0xC000,0x181F,0xE3C3,0xF807,0xF003,0xFBFC,0x0000,
  254.  0x0000,0x001F,0xFE0F,0x0000,0x1800,0x0020,0x0000,0xE01F,0xE7F8,0x0000,
  255.  0x0000,0x000F,0xFF0F,0x8000,0x0C00,0x0020,0x0001,0xE03F,0x8FF0,0x0000,
  256.  0x0000,0x0007,0xFFC7,0xC000,0x0C00,0x0020,0x0003,0xC1FE,0x1FE0,0x0000,
  257.  0x0000,0x0003,0xFFF3,0xF000,0x0600,0x0000,0x0007,0x8FF0,0x3FC0,0x0000,  0x0000,0x0001,0xFFFE,0xF800,0x0700,0x0040,0x000F,0x7FC0,0xFF80,0x0000,
  258.  0x0000,0x0000,0xFF7F,0xFE00,0x0380,0x0040,0x001F,0xFE03,0xFF00,0x0000,
  259.  0x0000,0x0000,0x3FCF,0xFF00,0x0180,0x0040,0x007F,0xE007,0xFC00,0x0000,
  260.  0x0000,0x0000,0x1FF1,0xFFC0,0x01C0,0x00C0,0x03FE,0x001F,0xF800,0x0000,
  261.  0x0000,0x0000,0x07FC,0x1FFE,0x00E0,0x0081,0xFFF0,0x00FF,0xE000,0x0000,
  262.  0x0000,0x0000,0x03FF,0x01FF,0xFF70,0x03FF,0xFFC0,0x03FF,0x8000,0x0000,
  263.  0x0002,0x0000,0x00FF,0xC07F,0xFFFA,0xFFFC,0x1F80,0x0FFE,0x0000,0x0000,  0x001F,0x8000,0x003F,0xF83F,0xC01C,0x0100,0x7E00,0x7FF8,0x0000,0x0000,
  264.  0x007F,0x0000,0x0007,0xFF0F,0xF80E,0x0300,0xFC03,0xFFE0,0x0000,0x0000,
  265.  0x0078,0x0780,0x0001,0xFFF3,0xFF07,0x0307,0xF03F,0xFF00,0x0000,0x0000,
  266.  0x0070,0x0870,0x0000,0x3FFF,0xFFF3,0xC23F,0xCFFF,0xF800,0x0030,0x0000,
  267.  0x0030,0x1F00,0x0000,0x07FF,0xFFFF,0xE6FF,0xFFFF,0x8000,0x0060,0x0000,
  268.  0x0038,0x7C0C,0x0000,0x007F,0xFFFF,0xFFFF,0xFFF8,0x0000,0x0030,0x0000,
  269.  0x001C,0x3007,0x0000,0x0003,0xFFFF,0xFFFF,0xFE00,0x0000,0x08C0,0x0000,  0x000E,0x3007,0x8000,0x0000,0x07FF,0xFFFF,0xE000,0x0060,0x3CC8,0x0000,
  270.  0x0007,0x0003,0x8380,0x0000,0x0000,0x0800,0x0000,0x0003,0x3180,0x0000,
  271.  0x0001,0xC603,0x838E,0x0000,0x0000,0x0000,0x0000,0x0040,0x3130,0x0000,
  272.  0x0000,0x6003,0x870C,0x060C,0x0000,0x0000,0x0000,0x0044,0x6340,0x0000,
  273.  0x0000,0x3807,0x0718,0x0408,0x0018,0x03F2,0x0002,0x008C,0x6000,0x0000,
  274.  0x0000,0x0780,0x0E07,0x8000,0x001C,0x01C4,0x0812,0x0188,0x4000,0x0000,
  275.  0x0000,0x0040,0x1C0F,0x0F02,0x003C,0x838E,0x0207,0x8330,0x0000,0x0000,  0x0000,0x0000,0x003E,0x1E02,0x007C,0x8308,0xC00F,0x0700,0x0000,0x0000,
  276.  0x0000,0x0000,0x0000,0x7C5C,0x0071,0x0611,0x1C8E,0xC000,0x0000,0x0000,
  277.  0x0000,0x0000,0x0000,0x0070,0x00ED,0x1600,0x7300,0x0000,0x0000,0x0000,
  278.  0x0000,0x0000,0x0000,0x0000,0x0066,0x3E6E,0x0000,0x0000,0x0000,0x0000
  279. };
  280.  
  281. struct Image Pic1Image = 
  282. {
  283.    0,  0,                                 /* LeftEdge, TopEdge         */
  284.  160, 72,                                 /* Width, Height             */
  285.    2,                                     /* Depth                     */
  286.  Pic1Data,                                /* ImageData                 */
  287.  0x03, 0x00,                              /* PlanePick, PlaneOnOff     */
  288.  NULL,                                    /* NextImage                 */
  289. };
  290.  
  291. struct Image Pic2Image =
  292. {
  293.    0,  0,                                 /* LeftEdge , TopEdge        */
  294.  160, 72,                                 /* Width , Height            */ 
  295.    2,                                     /* Depth                     */
  296.  Pic2Data,                                /* ImageData                 */
  297.  0x03, 0x00,                              /* PlanePick , PlaneOnOff    */
  298.  NULL,                                    /* NextImage                 */
  299. };
  300.  
  301. struct Gadget ImageGadget =
  302. {
  303.  NULL,                                    /* Last Gadget               */
  304.   41, 15,                                 /* LeftEdge , TopEdge        */
  305.  185, 81,                                 /* Width , Height            */
  306.  GADGHIMAGE | GADGIMAGE,                   /* Flags                     */
  307.  GADGIMMEDIATE                            /* Activation                */
  308.  | TOGGLESELECT,
  309.  BOOLGADGET,                              /* Gadget Type               */
  310.  (APTR)&Pic1Image,                         /* Gadget Render             */
  311.  (APTR)&Pic2Image,                        /* Selected Render           */
  312.  NULL,                                    /* No Gadget Text            */
  313.  NULL,                                    /* Mutual Exclude            */
  314.  NULL,                                    /* Special Info              */
  315.  IMAGEGADGET_GAD,                         /* Gadget ID                 */
  316.  NULL,                                    /* User Data                 */
  317. };
  318.  
  319.  
  320. struct NewWindow NewWindow1 =
  321. {
  322.   20, 30,                                 /* LeftEdge , TopEdge        */
  323.  250,100,                                 /* Width , Height            */
  324.    0,  1,                                 /* DetailPen , BlockPen      */
  325.  CLOSEWINDOW,                             /* IDCMP Flags               */
  326.  WINDOWCLOSE                              /* Flags                     */
  327.  | WINDOWDRAG | WINDOWDEPTH | SMART_REFRESH | ACTIVATE,
  328.  &ImageGadget,                            /* First Gadget              */
  329.  NULL,                                    /* Check Mark                */
  330.  (UBYTE *) "Image Gadget :",              /* Title                     */
  331.  NULL,                                    /* Screen                    */
  332.  NULL,                                    /* BitMap                    */
  333.  100, 20,                                 /* MinWidth , MinHeight      */
  334.  640,256,                                 /* MaxWidth , MaxHeight      */
  335.  WBENCHSCREEN,                            /* ScreenType                */
  336. };
  337.  
  338.  
  339. void main()
  340. {
  341.  struct IntuiMessage  *message;
  342.  struct Message       *GetMsg();
  343.  
  344.  Open_All();
  345.    
  346.  FOREVER
  347.  {
  348.   if (NOT(message = (struct IntuiMessage *)
  349.         GetMsg(Window1->UserPort)))
  350.   {
  351.    Wait(1L << Window1->UserPort->mp_SigBit);
  352.    continue;
  353.   }
  354.   ReplyMsg(message);
  355.  
  356.   switch (message->Class)
  357.   {
  358.          
  359.    case CLOSEWINDOW : Close_All();
  360.                       exit(TRUE);
  361.          
  362.   }
  363.  }
  364. }
  365.  
  366.  
  367. void Open_All()
  368. {
  369.  struct Window        *OpenWindow();
  370.  void                 *OpenLibrary();
  371.  
  372.  if (NOT(IntuitionBase = (struct IntuitionBase *)
  373.        OpenLibrary ("intuition.library", 0L)))
  374.  {
  375.   printf("Keine Intuition Library gefunden.");
  376.   Close_All();
  377.   exit(FALSE);
  378.  }
  379.  
  380.  if (NOT(Window1 = (struct Window *)
  381.        OpenWindow (&NewWindow1 )))
  382.  {
  383.   printf("Das Window1 -  WB-Window läßt sich nicht öffnen.\n");
  384.   Close_All();
  385.   exit(FALSE);
  386.  }
  387.  
  388. }
  389.  
  390.  
  391. void Close_All()
  392. {
  393.  void                  CloseWindow();
  394.  void                  CloseLibrary();
  395.  
  396.  if (Window1)   CloseWindow (Window1) ;
  397.  if (IntuitionBase)     CloseLibrary(IntuitionBase);
  398. }
  399.