home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!CENTRAL1.LANCASTER.AC.UK!MARTINK
- Via: UK.AC.LANCS.CENT1; 22 JAN 93 9:32:36 GMT
- X-Mailer: ELM [version 2.4 PL20]
- Content-Type: text
- Content-Length: 1201
- Message-ID: <10938.9301220934@central1.lancaster.ac.uk>
- Newsgroups: bit.listserv.i-amiga
- Date: Fri, 22 Jan 1993 09:34:12 +0000
- Reply-To: M.Kalugin@central1.lancaster.ac.uk
- Sender: Info-Amiga List <I-AMIGA@RUTVM1.BITNET>
- From: Martin Kalugin <martink@CENTRAL1.LANCASTER.AC.UK>
- Subject: Gadgets & Images
- Lines: 40
-
- Hi it's me again!
-
- Last night I was playing around with the Image data that I was passing to
- my CreateImage() function. The data looks something like:
-
-
- #define IMAGE_WIDTH 16 /* 16 bits per UWORD = 16 pixels wide ? */
- #define IMAGE_HEIGHT 6 /* 6 lines high */
- #define IMAGE_DEPTH 1 /* Just use 1 for now, nothing fancy! */
-
-
- UWORD chip gad1_image_data [6] =
- {
- 0xFFFF,
- 0xFFFF,
- 0xFFFF,
- 0xFFFF,
- 0xFFFF,
- 0xFFFF /* The last comma can be ommitted */
- };
-
-
- Now, when I changed the width to 8 the function worked! Obviously 8 is half
- of 16, so am I right in writing "0xFFFF", or should that be "0xFF"?
- Then, when I doubled the number of elements in the array to 12 and put the
- width back to 16 the solid block was displayed correctly!
-
-
- I am using the public domain C manual to write this code, I was just
- wondering whether this interpretation of Image data was correct, (or am I
- aiming at completely the wrong Barn Door) ?
-
-
- Replies to:
- --
- Martin Kalugin
-
- Phone: (0524) 593677
-
- Email: M.Kalugin@uk.ac.lancaster
-