In the timer tick event I call MovingText.MoveLeft then when the position of the text is changed ,then I call "Draw" sub to draw text on the PICBOX.
Private Sub Draw()
bit = New Bitmap(PICBOX.Width, PICBOX.Height)
Using graph As Graphics = Graphics.FromImage(bit)
'to remove "shadows" from text use this property (you don't need to do this in WIN XP)
graph.TextRenderingHint = Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit
' draw string
graph.DrawString(pText, MyFont, FontColor, STR(1).X, y)
graph.DrawString(pText, MyFont, FontColor, STR(2).X, y)
End Using
PICBOX.Image = bit
End Sub
I have try to change graphic properties,but nothing happens.
graph.SmoothingMode
graph.CompositingMode
graph.CompositingQuality

New Topic/Question
Reply



MultiQuote





|