home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
programming
/
intuitioned
/
imagegad.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-10
|
25KB
|
399 lines
/*-----------------------------------------------------------
-- Programm: ImageGad.c
-- Autor: Intuition Ed
-- Datum: Sun May 13
-- Funktion: Example of an Imagegadget.
-- Bemerkung: Data must be in CHIP-RAM.
-- The ILBM code was compiled to C by NGI.
------------------------------------------------------------/*
#include <intuition/intuition.h>
#define IMAGEGADGET_GAD 0
void Open_All() ;
void Close_All();
struct IntuitionBase *IntuitionBase;
struct Window *Window1;
UWORD Pic1Data[] =
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0xC7FF,0xFFFF,0xF7FF,0xF7F3,0xF7FF,0xF5FB,0xE5BF,0xBFF1,0x7FFF,0xFFB7,
0xC444,0x4460,0x1E23,0xE3EA,0x32D1,0x11FF,0xE9F1,0xBCFB,0x1116,0xB191,
0xDDC7,0x5C2C,0xD6BB,0xF7EA,0xF731,0x75FB,0xEDB7,0x91FB,0x5179,0xB7B5,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001, 0x8000,0x0000,0x0001,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE01,
0x8000,0x7EFF,0xE201,0xFF3F,0xCFFF,0x3CFC,0xDCCF,0xF3F0,0x0000,0x0201,
0x8000,0x6FFB,0xF201,0x003F,0xDFFF,0x3CFC,0xCCCF,0xF000,0x0000,0x0201,
0x8000,0x0000,0x0001,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE01,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x8030,0x0001, 0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000F,0xFF30,0x0001,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x0000,0x0001,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0040,0x0000,0x0000,0x0001,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0057,0xDFC1,0x7CE1,0x3B05,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD7,0x7CCF,0xFDFF,0xFF05,
0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD, 0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0052,0xFCFF,0x3F3F,0xFC05,
0xA000,0x0000,0x0000,0x0D00,0x0000,0x0000,0x0053,0xFCFF,0x3F3B,0xFC05,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDF,0xFFFF,0xFFFF,0xFFFD,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005C,0x0018,0xF180,0x0C35,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0x3F3F,0xCCFF,0xFFF5,
0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x0050,0x0000,0x001E,0x00C5, 0xBFFF,0xFFFF,0xFFFF,0xFD00,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD0,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0053,0xF3FC,0xC000,0x0005,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD3,0xF3FC,0xC000,0x0005, 0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x000C,0xF800,0x3035,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x000F,0xCFF3,0x3F35,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0205,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDF,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005, 0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFDC,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005C,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005, 0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFD0,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x0050,0x0000,0x0000,0x0005,
0xA000,0x0000,0x0000,0x0500,0x0000,0x0000,0x005F,0xFFFF,0xFFFF,0xFFFD,
0xBFFF,0xFFFF,0xFFFF,0xFDFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001, 0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001, 0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x3800,0x0000,0x0800,0x080C,0x0800,0x0A04,0x1A40,0x400E,0x8000,0x0048, 0x3BBB,0xBB9F,0xE1DC,0x1C15,0xCD2E,0xEE00,0x160E,0x4304,0xEEE9,0x4E6E,
0x2238,0xA3D3,0x2944,0x0815,0x08CE,0x8A04,0x1248,0x6E04,0xAE86,0x484A,
0x0003,0x8000,0x0038,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x03F8,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0xC000,0x0000,0x0110,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x2000,0x0000,0x00E0,
0x1FFF,0xFF7F,0xFFFB,0xF87C,0x060E,0x0180,0xC007,0xF000,0x0000,0x0040,
0x1E47,0x60E4,0x7619,0xF87F,0xFFFF,0xFFFF,0xE000,0x0000,0x0000,0x0000, 0x1FFF,0xFFFF,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0445,0x41C4,0x5433,0x0000,0xD826,0x3000,0x0000,0x0000,0x0000,0x0000,
0x07FD,0xFF7F,0xDFFF,0x807F,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0063,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x1FFF,0xFFFF,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x1FF8,0xFFCF,0xFFFF,0xF800,0xD826,0x0003,0x0000,0x0000,0x0000,0x0000,
0x1002,0x0007,0xFFFF,0xF87F,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0000,
0x1FFF,0x0FFF,0xFFFF,0xF863,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0006,0x000C,0x0000,0x0000,0xD820,0x6030,0x0000,0x0000,0x0000,0x0000, 0x0FFF,0xFFFE,0x0000,0x007F,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FFC,0xC000,0x0000,0x007F,0xFFFF,0xEE00,0x0000,0x0000,0x0000,0x0000,
0x0FFF,0xE000,0x0000,0x00FF,0xFFDF,0xFE00,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FFC,0xC000,0x0000,0x007F,0xFFFF,0xFFB8,0x0000,0x0000,0x0000,0x0000,
0x0FFD,0xE000,0x0000,0x00FF,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000C,0x0000,0x0000,0x0000, 0x0FF3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FFF,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FFF,0xFFFE,0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FFF,0xFFFF,0xE000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x03FF,0xFFE3,0xFFFF,0xE000,0x0000,0x0000,0x001F,0xFFFF,0xE7FF,0xFFF8, 0x0200,0x0022,0x0000,0x2000,0x0000,0x0000,0x0010,0x0000,0x6600,0x0008,
0x0275,0xFC22,0x37AC,0x2000,0x0000,0x0000,0x0010,0x6D80,0x660D,0xF808,
0x023F,0x1C22,0x2DFC,0x2000,0x0000,0x0000,0x0010,0x4E80,0x660F,0xB808,
0x0200,0x0022,0x0000,0x2000,0x0000,0x0000,0x0010,0x0000,0x6600,0x0008,
0x03FF,0xFFE3,0xFFFF,0xE000,0x0000,0x0000,0x001F,0xFFFF,0xE7FF,0xFFF8,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
};
UWORD Pic2Data[] =
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x000F,0xE0FC,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x003F,0xF1FE,0x0000,0x1E00,0x0000,0x1C00,0x0000,0x0000,
0x0000,0x0000,0x003F,0xF1FE,0x0000,0x3E00,0x0F80,0x3F80,0x0000,0x0000,
0x0000,0x0000,0x001F,0xE1FE,0x0000,0x7E00,0x1FC0,0x7FC0,0x0000,0x0000, 0x0000,0x0000,0x000F,0xE0FC,0x0001,0xFE00,0x3FE0,0xFFE0,0x0000,0x0000,
0x0000,0x0000,0x000F,0xF1FC,0x0001,0xFE00,0x7FF0,0xFFE0,0x0000,0x0000,
0x0000,0x0000,0x0007,0xF1F8,0x0001,0xFE00,0x7FF1,0xFBF0,0x0000,0x0000,
0x0000,0x0000,0x0007,0xF1F8,0x0000,0x3E00,0xFDF9,0xFBF0,0x0000,0x0000,
0x0000,0x0000,0x0007,0xF1F0,0x0000,0x2000,0x0CF9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0010,0x0000,0x3E00,0xF801,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0003,0xFBF0,0x0000,0x3E00,0xF8F9,0xF000,0x0000,0x0000, 0x0000,0x0000,0x0003,0xFBF0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0001,0xFFF0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0001,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0001,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0000,0xFFE0,0x0000,0x3E00,0xF8F9,0xF1F0,0x0000,0x0000,
0x0000,0x0000,0x0000,0xFFC0,0x0000,0x3E00,0xF8F9,0xFBF0,0x0000,0x0000,
0x0000,0x0000,0x0000,0xFFC0,0x0000,0x3E00,0xFDF9,0xFBF0,0x0000,0x0000, 0x0000,0x0000,0x0000,0x7FC0,0x0000,0x7F00,0xFDF8,0xFF00,0x0000,0x0000,
0x0000,0x0000,0x0000,0x7F80,0x0000,0xFFBF,0x7FF0,0xC060,0x0000,0x0000,
0x0000,0x0000,0x0000,0x7F80,0x0000,0xFFFF,0x3FE0,0x1FC0,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0300,0x0000,0xFFBF,0x0000,0x3F80,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0FC0,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x7800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,
0x0000,0xFF80,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0006,0x0000,
0x0007,0xA078,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0x8000, 0x0007,0x0087,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0x8000,
0x0007,0x00FB,0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x018D,0x8000,
0x0003,0x83F0,0xC000,0x0000,0x0000,0x0000,0x0000,0x0002,0x03CB,0x0000,
0x0001,0xC700,0x7000,0x0000,0x0000,0x0000,0x0000,0x0004,0x331B,0x0000,
0x0001,0xC700,0x3818,0x0000,0x0000,0x0000,0x0000,0x0000,0xC336,0x0000,
0x0000,0x7700,0x3838,0x6000,0x0000,0x0000,0x0000,0x004C,0xC630,0x0000,
0x0000,0x39E0,0x3831,0xF860,0x0000,0x0000,0xE000,0x0C9D,0xC600,0x0000, 0x0000,0x0640,0x7873,0xB9F3,0xC001,0x8C7F,0xC00F,0xEDBB,0x8400,0x0000,
0x0000,0x0798,0xF063,0xFB37,0xE001,0xDC0C,0xF38C,0xFF33,0x0000,0x0000,
0x0000,0x007F,0xA0E0,0x737E,0x6003,0xD839,0xB6EC,0xFE70,0x0000,0x0000,
0x0000,0x0004,0x01C0,0xE0EC,0x6003,0x7831,0x7CF8,0x6C00,0x0000,0x0000,
0x0000,0x0000,0x0001,0x81CD,0xE003,0x7073,0x2FF0,0xE000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0383,0xC00E,0xF166,0xE330,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0002,0x61E6,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x001F,0xFFFE,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x7FFF,0xFFFF,0xFE00,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x000F,0xFFFF,0xFFFF,0xFFF8,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x01FF,0xFFFF,0xF7FF,0xFFFF,0x8000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0FFF,0xFFFF,0x0387,0xFFFF,0xF000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x7FFF,0xF0FC,0x0180,0x7FFF,0xFE00,0x0000,0x0000,
0x0000,0x0000,0x0003,0xFFFF,0x01F0,0x00C0,0x0FFF,0xFFC0,0x0000,0x0000,
0x0000,0x0000,0x001F,0xFFF8,0x03C0,0x0040,0x01F8,0xFFF0,0x0000,0x0000,
0x0000,0x0000,0x007F,0xFFE0,0x0780,0x0040,0x007E,0x1FFC,0x0000,0x0000,
0x0000,0x0000,0x01FF,0xFF80,0x0700,0x0060,0x003F,0x03FF,0x0000,0x0000,
0x0000,0x0000,0x07FC,0xFE00,0x0E00,0x0020,0x000F,0x80FF,0xC000,0x0000,
0x0000,0x0000,0x0FF1,0xF800,0x1C00,0x0020,0x0007,0xC03F,0xE000,0x0000, 0x0000,0x0000,0x3FC7,0xE000,0x1800,0x0020,0x0001,0xE00F,0xF800,0x0000,
0x0000,0x0000,0xFF0F,0xC01F,0xFFFF,0xFF7F,0x0000,0xF003,0xFE00,0x0000,
0x0000,0x0001,0xFE1F,0x0FFE,0x3000,0x001F,0xFF00,0x7800,0xFF00,0x0000,
0x0000,0x0003,0xFC3F,0xFF00,0x6000,0x0010,0x07F8,0x3800,0x7F80,0x0000,
0x0000,0x0007,0xF83F,0xE000,0x6000,0x0010,0x003F,0xFC00,0x1FC0,0x0000,
0x0000,0x000F,0xF1FE,0x0000,0x6000,0x0010,0x0001,0xFE00,0x0FF0,0x0000,
0x0000,0x001F,0xEFF0,0x20C0,0x4000,0x0010,0x0000,0x1FC0,0x07F0,0x0000, 0x0000,0x003F,0xFFC0,0x3006,0xC000,0x1C10,0x0000,0x03FC,0x03F8,0x0000,
0x0000,0x007F,0xFFFC,0x301E,0xC000,0x3C10,0x0E00,0x07FF,0x81FC,0x0000,
0x0000,0x00FF,0xFBFC,0x1EFE,0x8000,0x3C00,0x1800,0x07CF,0xE0FE,0x0000,
0x0000,0x00FF,0xE7F0,0x1FFC,0x8003,0xC008,0xC9E3,0x0003,0xF8FE,0x0000,
0x0000,0x01FF,0xC7F0,0x3E7C,0x8007,0xE009,0xF1E7,0x0000,0x7F7F,0x8000,
0x0000,0x01FF,0x03F8,0x3E00,0x800F,0xE003,0xFFEF,0x3A10,0x1FFF,0x8000,
0x0000,0x01FE,0x03F9,0x0E00,0x803F,0xA007,0x0F07,0x3A00,0x07FF,0x8000, 0x0000,0x03FE,0x03F8,0x0E1F,0xFFFF,0xBFFF,0xF2FF,0x8800,0x03FF,0xC000,
0x0000,0x03FC,0x03FF,0xFFF0,0x803F,0xBC0F,0x07FE,0x8C00,0x00FF,0xC000,
0x0000,0x03F9,0xFFFE,0x87F0,0x8007,0xBE1F,0xC707,0xEDFC,0x003F,0xC000,
0x0000,0x03FF,0x03FF,0x87F0,0x8007,0xB81F,0xE705,0xFE70,0x1F9F,0xE000,
0x0000,0x07F8,0x03FF,0x80F0,0x8007,0xB01F,0x0FC5,0xFF30,0x001F,0xE000,
0x0000,0x07F8,0x03FF,0xE0E0,0x8007,0xB81F,0x67C5,0xFF00,0x001F,0xE000,
0x0000,0x03FC,0x03FE,0x7E20,0x8007,0x801F,0xC705,0xFE00,0x01FF,0xE000, 0x0000,0x03FE,0x03BF,0x1E00,0xC007,0x801F,0xE71D,0xFE10,0x0FFF,0xE000,
0x0000,0x03FF,0x83FF,0x0000,0xC007,0x821F,0x0FFD,0xFC70,0x7F7F,0xC000,
0x0000,0x03FF,0xE1FF,0x1C00,0x4007,0xB61F,0x0FFD,0xFC77,0xF0FF,0xC000,
0x0000,0x01FF,0xFDFF,0xFFC0,0x4007,0xFF1F,0x7FFC,0xF8FE,0x01FF,0x8000,
0x0000,0x01FE,0x1FFF,0xFD80,0x6007,0x7F3C,0xFF3E,0xFF80,0x03FF,0x8000,
0x0000,0x00FF,0x01FF,0x8000,0x6007,0x3FF8,0xBF9F,0xE000,0x07FF,0x0000,
0x0000,0x00FF,0x807F,0xFC00,0x200F,0x3FB9,0xFFFF,0xE000,0x1FFF,0x0000, 0x0000,0x007F,0xC07F,0xE1FF,0xFF5F,0xFFFF,0xF39F,0xF800,0x3FFE,0x0000,
0x0000,0x007F,0xE03F,0xE000,0x101F,0xEFE7,0xFC0F,0xF800,0xFFFE,0x0000,
0x0000,0x003F,0xF81F,0xC000,0x181F,0xE3C3,0xF807,0xF003,0xFBFC,0x0000,
0x0000,0x001F,0xFE0F,0x0000,0x1800,0x0020,0x0000,0xE01F,0xE7F8,0x0000,
0x0000,0x000F,0xFF0F,0x8000,0x0C00,0x0020,0x0001,0xE03F,0x8FF0,0x0000,
0x0000,0x0007,0xFFC7,0xC000,0x0C00,0x0020,0x0003,0xC1FE,0x1FE0,0x0000,
0x0000,0x0003,0xFFF3,0xF000,0x0600,0x0000,0x0007,0x8FF0,0x3FC0,0x0000, 0x0000,0x0001,0xFFFE,0xF800,0x0700,0x0040,0x000F,0x7FC0,0xFF80,0x0000,
0x0000,0x0000,0xFF7F,0xFE00,0x0380,0x0040,0x001F,0xFE03,0xFF00,0x0000,
0x0000,0x0000,0x3FCF,0xFF00,0x0180,0x0040,0x007F,0xE007,0xFC00,0x0000,
0x0000,0x0000,0x1FF1,0xFFC0,0x01C0,0x00C0,0x03FE,0x001F,0xF800,0x0000,
0x0000,0x0000,0x07FC,0x1FFE,0x00E0,0x0081,0xFFF0,0x00FF,0xE000,0x0000,
0x0000,0x0000,0x03FF,0x01FF,0xFF70,0x03FF,0xFFC0,0x03FF,0x8000,0x0000,
0x0002,0x0000,0x00FF,0xC07F,0xFFFA,0xFFFC,0x1F80,0x0FFE,0x0000,0x0000, 0x001F,0x8000,0x003F,0xF83F,0xC01C,0x0100,0x7E00,0x7FF8,0x0000,0x0000,
0x007F,0x0000,0x0007,0xFF0F,0xF80E,0x0300,0xFC03,0xFFE0,0x0000,0x0000,
0x0078,0x0780,0x0001,0xFFF3,0xFF07,0x0307,0xF03F,0xFF00,0x0000,0x0000,
0x0070,0x0870,0x0000,0x3FFF,0xFFF3,0xC23F,0xCFFF,0xF800,0x0030,0x0000,
0x0030,0x1F00,0x0000,0x07FF,0xFFFF,0xE6FF,0xFFFF,0x8000,0x0060,0x0000,
0x0038,0x7C0C,0x0000,0x007F,0xFFFF,0xFFFF,0xFFF8,0x0000,0x0030,0x0000,
0x001C,0x3007,0x0000,0x0003,0xFFFF,0xFFFF,0xFE00,0x0000,0x08C0,0x0000, 0x000E,0x3007,0x8000,0x0000,0x07FF,0xFFFF,0xE000,0x0060,0x3CC8,0x0000,
0x0007,0x0003,0x8380,0x0000,0x0000,0x0800,0x0000,0x0003,0x3180,0x0000,
0x0001,0xC603,0x838E,0x0000,0x0000,0x0000,0x0000,0x0040,0x3130,0x0000,
0x0000,0x6003,0x870C,0x060C,0x0000,0x0000,0x0000,0x0044,0x6340,0x0000,
0x0000,0x3807,0x0718,0x0408,0x0018,0x03F2,0x0002,0x008C,0x6000,0x0000,
0x0000,0x0780,0x0E07,0x8000,0x001C,0x01C4,0x0812,0x0188,0x4000,0x0000,
0x0000,0x0040,0x1C0F,0x0F02,0x003C,0x838E,0x0207,0x8330,0x0000,0x0000, 0x0000,0x0000,0x003E,0x1E02,0x007C,0x8308,0xC00F,0x0700,0x0000,0x0000,
0x0000,0x0000,0x0000,0x7C5C,0x0071,0x0611,0x1C8E,0xC000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0070,0x00ED,0x1600,0x7300,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0066,0x3E6E,0x0000,0x0000,0x0000,0x0000
};
struct Image Pic1Image =
{
0, 0, /* LeftEdge, TopEdge */
160, 72, /* Width, Height */
2, /* Depth */
Pic1Data, /* ImageData */
0x03, 0x00, /* PlanePick, PlaneOnOff */
NULL, /* NextImage */
};
struct Image Pic2Image =
{
0, 0, /* LeftEdge , TopEdge */
160, 72, /* Width , Height */
2, /* Depth */
Pic2Data, /* ImageData */
0x03, 0x00, /* PlanePick , PlaneOnOff */
NULL, /* NextImage */
};
struct Gadget ImageGadget =
{
NULL, /* Last Gadget */
41, 15, /* LeftEdge , TopEdge */
185, 81, /* Width , Height */
GADGHIMAGE | GADGIMAGE, /* Flags */
GADGIMMEDIATE /* Activation */
| TOGGLESELECT,
BOOLGADGET, /* Gadget Type */
(APTR)&Pic1Image, /* Gadget Render */
(APTR)&Pic2Image, /* Selected Render */
NULL, /* No Gadget Text */
NULL, /* Mutual Exclude */
NULL, /* Special Info */
IMAGEGADGET_GAD, /* Gadget ID */
NULL, /* User Data */
};
struct NewWindow NewWindow1 =
{
20, 30, /* LeftEdge , TopEdge */
250,100, /* Width , Height */
0, 1, /* DetailPen , BlockPen */
CLOSEWINDOW, /* IDCMP Flags */
WINDOWCLOSE /* Flags */
| WINDOWDRAG | WINDOWDEPTH | SMART_REFRESH | ACTIVATE,
&ImageGadget, /* First Gadget */
NULL, /* Check Mark */
(UBYTE *) "Image Gadget :", /* Title */
NULL, /* Screen */
NULL, /* BitMap */
100, 20, /* MinWidth , MinHeight */
640,256, /* MaxWidth , MaxHeight */
WBENCHSCREEN, /* ScreenType */
};
void main()
{
struct IntuiMessage *message;
struct Message *GetMsg();
Open_All();
FOREVER
{
if (NOT(message = (struct IntuiMessage *)
GetMsg(Window1->UserPort)))
{
Wait(1L << Window1->UserPort->mp_SigBit);
continue;
}
ReplyMsg(message);
switch (message->Class)
{
case CLOSEWINDOW : Close_All();
exit(TRUE);
}
}
}
void Open_All()
{
struct Window *OpenWindow();
void *OpenLibrary();
if (NOT(IntuitionBase = (struct IntuitionBase *)
OpenLibrary ("intuition.library", 0L)))
{
printf("Keine Intuition Library gefunden.");
Close_All();
exit(FALSE);
}
if (NOT(Window1 = (struct Window *)
OpenWindow (&NewWindow1 )))
{
printf("Das Window1 - WB-Window läßt sich nicht öffnen.\n");
Close_All();
exit(FALSE);
}
}
void Close_All()
{
void CloseWindow();
void CloseLibrary();
if (Window1) CloseWindow (Window1) ;
if (IntuitionBase) CloseLibrary(IntuitionBase);
}