VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Dec 2008
    Location
    Spain
    Search Comp PM
    Hello, I have this simple counter in Avisynth, I would like to add a rectangle somewhere on the screen around the text, say 8 pixels thick, is it possible to do that?

    Code:
    BlankClip(width=640, height=360, length=1, fps=1, color=$FFFFFF)
    
    Subtitle("2010 - 64", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2011 - 71", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2012 - 86", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2013 - 90", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2014 - 97", size=150, x=30, y=100, text_color=$0000ff)
    Quote Quote  
  2. I'll leave it up to you to fine tune positions and sizes:

    Code:
    BlankClip(width=640, height=360, length=1, fps=1, color=$FFFFFF)
    
    Subtitle("2010 - 64", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2011 - 71", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2012 - 86", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2013 - 90", size=150, x=30, y=100, text_color=$0000ff) \
    ++ Subtitle("2014 - 97", size=150, x=30, y=100, text_color=$0000ff)
    
    # add a red outline box around the text:
    boxmask = BlankClip(width=600, height=130, color=color_black).AddBorders(8,8,8,8,color=color_white)
    boxcolor = BlankClip(boxmask, color=color_red)
    Overlay(last, boxcolor, x=10, y=100, mask=boxmask)
    Image
    [Attachment 62415 - Click to enlarge]
    Quote Quote  
  3. Member
    Join Date
    Dec 2008
    Location
    Spain
    Search Comp PM
    Works very well, thanks!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!