VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Printing pixels around the name.

by vinodkumar (1 Submission)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 13th December 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Printing pixels around the name.

API Declarations


Dim tw As Single
Dim th As Single



Rate Printing pixels around the name.



Timer1.Enabled = True
Timer1.Interval = 500
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
DrawWidth = 2
Me.FontSize = 30
CurrentX = Me.ScaleWidth / 2
CurrentY = Me.ScaleHeight / 2
str = "Vinod"
tw = TextWidth(str)
th = TextHeight(str)
Print str
stx = Me.ScaleWidth / 2
sty = Me.ScaleHeight / 2
For lft = stx To (stx + tw) Step 70
For wd = sty To (sty + th) Step 70
PSet (lft, wd), RGB(Rnd * 255, Rnd * 255, Rnd * 255)
DoEvents
Next
DoEvents
Next
End Sub


Download this snippet    Add to My Saved Code

Printing pixels around the name. Comments

No comments have been posted about Printing pixels around the name.. Why not be the first to post a comment about Printing pixels around the name..

Post your comment

Subject:
Message:
0/1000 characters