Sub DrawSkewImage(ByVal gr As Graphics, ByVal bmp As Bitmap, ByVal x As Single, _ ByVal y As Single, ByVal dx As Single, ByVal dy As Single) Dim x1 As Single = x + bmp.Width Dim y1 As Single = y + dy Dim x2 As Single = x + dx Dim y2 As Single = y + bmp.Height
Dim points() As Point = {New Point(x, y), New Point(x1, y1), New Point(x2, _ y2)} gr.DrawImage(bmp, points) End Sub |