|
|
|
Click here to copy the following block |
Sub DrawFlipImage(ByVal gr As Graphics, ByVal bmp As Bitmap, ByVal x As Single, _ ByVal y As Single, ByVal flipX As Boolean, ByVal flipY As Boolean) Dim x0 As Single = x Dim y0 As Single = y Dim x1 As Single = x + bmp.Width Dim y1 As Single = y Dim x2 As Single = x Dim y2 As Single = y + bmp.Height
If flipX Then x0 = x + bmp.Width x1 = x x2 = x0 End If If flipY Then y0 = y + bmp.Height y1 = y0 y2 = y End If Dim points() As Point = {New Point(x0, y0), New Point(x1, y1), New Point(x2, _ y2)} gr.DrawImage(bmp, points) End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|