home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 63 / CDACTUAL63.iso / Aplicaciones / DarkBasic / DemoDarkBasic.exe / help / examples / text / exam06.dba < prev    next >
Encoding:
Text File  |  2000-04-09  |  958 b   |  38 lines

  1. Rem * Title  : Setting Text Opacity
  2. Rem * Author : DBS-MB
  3. Rem * Date   : 1st August 99
  4. rem ========================================
  5. rem DARK BASIC EXAMPLE PROGRAM 6
  6. rem ========================================
  7. rem This program will use set text opaque
  8. rem ----------------------------------------
  9.     
  10. rem first we will load a picture
  11. load bitmap "pic.bmp"
  12.  
  13. rem Set the ink to white and paper color to black 
  14. ink rgb(244,214,210),1
  15.  
  16. rem Pick a new font
  17. rem the new font will work with all text command but not the print command
  18.     
  19. rem This is the font i want to use
  20. set text font "times new roman"
  21.     
  22. rem Set the size of the new font  
  23. set text size 32
  24.  
  25. rem Set the font to opaque
  26. set text opaque
  27. text 40,50,"THIS IS THE FONT SET TO OPAQUE"
  28.  
  29. rem Set the font to transparent 
  30. set text transparent
  31. text 40,90,"THIS IS THE FONT SET TO TRANSPARENT"
  32.  
  33. rem Will wait for you to press any key
  34. suspend for key
  35.  
  36. rem End the program
  37. end
  38.