home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / iamiga / 10557 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.8 KB  |  56 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!CENTRAL1.LANCASTER.AC.UK!MARTINK
  3. Via:            UK.AC.LANCS.CENT1; 22 JAN 93  9:32:36 GMT
  4. X-Mailer:       ELM [version 2.4 PL20]
  5. Content-Type:   text
  6. Content-Length: 1201
  7. Message-ID: <10938.9301220934@central1.lancaster.ac.uk>
  8. Newsgroups: bit.listserv.i-amiga
  9. Date:         Fri, 22 Jan 1993 09:34:12 +0000
  10. Reply-To:     M.Kalugin@central1.lancaster.ac.uk
  11. Sender:       Info-Amiga List <I-AMIGA@RUTVM1.BITNET>
  12. From:         Martin Kalugin <martink@CENTRAL1.LANCASTER.AC.UK>
  13. Subject:      Gadgets & Images
  14. Lines: 40
  15.  
  16. Hi it's me again!
  17.  
  18. Last night I was playing around with the Image data that I was passing to
  19. my CreateImage() function.  The data looks something like:
  20.  
  21.  
  22.     #define IMAGE_WIDTH     16      /* 16 bits per UWORD = 16 pixels wide ? */
  23.     #define IMAGE_HEIGHT    6       /* 6 lines high */
  24.     #define IMAGE_DEPTH     1       /* Just use 1 for now, nothing fancy! */
  25.  
  26.  
  27.     UWORD   chip    gad1_image_data [6] =
  28.     {
  29.         0xFFFF,
  30.         0xFFFF,
  31.         0xFFFF,
  32.         0xFFFF,
  33.         0xFFFF,
  34.         0xFFFF            /* The last comma can be ommitted */
  35.     };
  36.  
  37.  
  38. Now, when I changed the width to 8 the function worked!  Obviously 8 is half
  39. of 16, so am I right in writing "0xFFFF", or should that be "0xFF"?
  40. Then, when I doubled the number of elements in the array to 12 and put the
  41. width back to 16 the solid block was displayed correctly!
  42.  
  43.  
  44. I am using the public domain C manual to write this code, I was just
  45. wondering whether this interpretation of Image data was correct, (or am I
  46. aiming at completely the wrong Barn Door) ?
  47.  
  48.  
  49. Replies to:
  50. --
  51.                               Martin Kalugin
  52.  
  53.                            Phone: (0524) 593677
  54.  
  55.                      Email: M.Kalugin@uk.ac.lancaster
  56.