home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3842 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.5 KB

  1. Path: sparky!uunet!gatech!ukma!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: OS2 basics
  5. Message-ID: <1992Jul28.173631.24719@njitgw.njit.edu>
  6. Date: 28 Jul 92 17:36:31 GMT
  7. References: <1992Jul27.103401.19641@hellgate.utah.edu>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 25
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <1992Jul27.103401.19641@hellgate.utah.edu> gershon%gr.cs.utah.edu@cs.utah.edu (Elber Gershon) writes:
  14. >o.k. OS2 gurus, here is a one (actually two) for you.
  15. >
  16. >* What is the fastest way of drawing horizontal lines? Is GpiLine optimized
  17. >  for horizontal lines? Is it the OS2 kernel that draw the lines (DDA)
  18. >  or is it the display driver?
  19.  
  20. Use GpiLine.  I don't know how optimized it is, but it's the only way
  21. I know of.  (You really don't want to plot pixels or draw degenerate
  22. polygons!)  I believe the functions are optimized, however, so there
  23. shouldn't be a problem.
  24.  
  25. Also, by using the standard API calls, your program will improve as
  26. the system DLLs are upgraded in the future.
  27.  
  28. Finally, the graphics work is a cooperative effort between the display
  29. driver and the PM*.DLL files.  The display.dll handles the device-
  30. specific work, and the pm*.dll files handle the generic device-
  31. independant work.
  32.  
  33. -- 
  34.    |)  David Charlap           "I don't even represent myself
  35.   /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
  36.  ((|,)
  37.   ~|~  Hi! I am a .signature virus, copy me into your .signature file.
  38.