home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:12803 comp.os.msdos.programmer:11348 comp.msdos.programmer:104
- Newsgroups: comp.graphics,comp.os.msdos.programmer,comp.msdos.programmer
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!slindsay
- From: slindsay@nyx.cs.du.edu (Steve Lindsay)
- Subject: bitmap
- Message-ID: <1992Dec12.051026.29524@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Distribution: na
- Date: Sat, 12 Dec 92 05:10:26 GMT
- Lines: 27
-
-
- I am working with Borland C++ 3.1 and VGA trying to use the
- Graphics.h library. When I change my setbkcolor to BLUE and
- then change setcolor to BLACK (current drawing color) and try
- to draw it is not in black it is in blue. Or at least I think it is
- blue because I cannot see the lines.
-
- What is the deal? Does Graphics.h change the background color
- by changing color number 0 (BLACK) to what ever color I tell it
- and then when I try to draw with number 0 (BLACK) it is not black
- but the same as my background color.
-
- As a side note.. This whole thing of drawing in the
- dark (by plug in in coordinates) is crazy and very time consuming
- to try to draw a pretty picture with. What I did was made a bitmap
- in a paint program the same size as that will be displayed on my VGA
- screen. Then drew my picture with the color that I will have in VGA.
- Then went around getting coordinates in my paint program by putting
- the cursor on a pixel and reading the coordinates and plugging those
- numbers into my code. I am going nuts isn't there a easier way. Are
- there any graphics libraries that will read a bitmap file (gif, tif, bmp
- ect...)
- off the disk then I could use something like getimage to store it
- and putimage to display it when I needed it. Does anyone have
- any ideas?
-
-
-