home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / graphics / 12803 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.8 KB

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