MakeShadowBitmapFont
MakeShadowBitmapFont FontIndex, FontColour, ShadowOffsetX, ShadowOffsetY, ShadowColour
 
Parameters:

    FontIndex = The font index you wish to convert
    FontColour = The colour the bitmap text should be stored in
    ShadowOffsetX = The offset the shadow along the X axis
    ShadowOffsetY = The offset the shadow along the Y axis
    ShadowColour = The colour of the fonts shadow
Returns: NONE
 

      MakeShadowBitmapFont converts a windows font to a special shadowed bitmap version. When converting the font to bitmaps, it first draw a shadow of a letter behind the actual letter. The shadow is merely the letter drawn with an offset in a differnt colour. You choose the offset and colour you want. Beware though, if you set the offsets too far they will write off the letters bitmaps.




FACTS:


      * Note: This command really only works with windows bitmap fonts. Since True typed windows fonts have problems with anti alias artifacts.




Mini Tutorial:


      This example loads two copies of the courier font. The Second is converted to a shadowed bitmap font. Then it displays some text.



  
  
  
; load the courier font as font #2
  LoadFont "courier",2,32,0
  
; load the courier font as font #3
  LoadFont "courier",3,32,0
; shadow this font
  MakeShadowBitmapFont 3,RGB(255,255,255),2,1,RGB(8,8,8)
  
  
  Cls RGB(180,140,50)
  
; render the normal font
  t$="This looks normal..."
  SetFont 2
  Text 100,100,t$
  
; Render the shadowed font
  SetFont 3
  t$="Better Looking Text!!"
  Text 100,200,t$
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




 
Related Info: BlendBitmapFont | MakeBitmapFont :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com