Inside PictureBox1_Paint I used PaintEventArgs parameter to draw some graphics and make transformations (rotation/scale).
All changes are visible in the picturebox. Now I want to extract the image/bitmap updated, I mean, a bitmap with all that transformations I did, how to do it? The image in the picturebox is always Nothing.
There I send MyBitmap to be drawn by e.Graphics, but it's not 'transformed', it's just used to draw, How can I get the transfomed bitmap?VB Code:
Private Sub PictureBox1_Paint(ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint e.Graphics.Clear(PictureBox1.BackColor) RotateImage(e) 'Another sub ZoomImage(e) 'Another sub e.Graphics.DrawImage(MyBitmap, -PosX, -PosY) 'My bitmap drawn with transformation End Sub




Reply With Quote