Nate Bross
Well-known member
Hi, I have a bitmap, say its 800x600 pixels. I have a form that is fullscreen (1024x768), but I only want to draw a portian of the bitmap, say 400x400 pixels to the form. Any sugestions?
I would like to draw the top left region, 400x400 pixels out of 800x600 of BackBuffer onto the form.
I appreciate any advice you might have.
Code:
Private Sub Form1_OnPaint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
e.Graphics.DrawImage(BackBuffer, New Point(0, 0))
End Sub
I would like to draw the top left region, 400x400 pixels out of 800x600 of BackBuffer onto the form.
I appreciate any advice you might have.