Dim AbsLT As Point 'The upper left coordinates for the images (Left and Top, or Location) Dim AbsImage As Bitmap 'The image inside of our abstract-picturebox. |
Point absLT; //The upper-left corner's coordinates of our abstracted-picturebox. Bitmap absBmp; //The picture that will be in this abstracted-picturebox. |
AbsImage = New Bitmap("marshal.gif") 'Put a picture of a marshal into the abstract-picturebox! |
absBmp = new Bitmap("marshal.gif"); //Puts a picture into our abstracted-picturebox. |
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawImage(AbsImage, AbsLT) 'Draw our abstract picturebox. End Sub |
void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { e.Graphics.DrawImage(absBmp, absLT); //Draws the abstracted-picturebox. } |
Dim AbsBounds As Rectangle 'The upper left coordinates for the images (Left and Top, or Location) Dim AbsImage As Bitmap 'The image inside of our abstract-picturebox. |
Rectangle absBounds; //The upper-left corner's coordinates of our abstracted-picturebox. Bitmap absBmp; //The picture that will be in this abstracted-picturebox. |
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawImage(AbsImage, AbsBounds) 'Draw our abstract picturebox. End Sub |
void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { e.Graphics.DrawImage(absBmp, absBounds); //Draws the abstracted-picturebox. } |