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