home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / graphics / 8021 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.graphics
  2. Path: sparky!uunet!decwrl!csus.edu!netcomsv!proto!joe
  3. From: joe@proto.com (Joe Huffman)
  4. Subject: Re: More on Borland's putimage()
  5. Organization: Prototronics @ Sandpoint, Idaho
  6. Date: Wed, 22 Jul 1992 13:55:52 GMT
  7. Message-ID: <1992Jul22.135552.5874@proto.com>
  8. References: <1435@grivel.une.edu.au>
  9. Lines: 22
  10.  
  11. scavanag@neumann.une.edu.au (Steven Cavanagh) writes:
  12.  
  13. >is there any way you can draw pictures with a paint program, and
  14. >then use them in your programs with getimage() and putimage()
  15. >(or any other method, for that matter)
  16.  
  17. The data format for putimage is graphics driver dependent.  I'm told it
  18. is fairly easy to figure out (and may in fact be documented).  
  19.  
  20. What you probably really want is something to read the image from a 
  21. file (.PCX, .GIF or other well known file format) and put that on the 
  22. screen.  You can use the putpixel() routine to put the image on the
  23. screen, but it will be very slow.  There are various companies that 
  24. have graphics libraries that will allow you to display images on your
  25. screen from inside your program.  Some even have a BGI interface available
  26. so you don't have to change your BGI function calls to the equivalent ones
  27. in the new library (the company I work for sells "Flash Graphics" which
  28. has such an interface).
  29.  
  30. -- 
  31. netcom!proto!joe
  32. joe@proto.com
  33.