Nee het blijft allemaal hetzelfde. wat gekibbel opgeslagen en in een ander formaat (bmp, jpg, png) het blijft dit doen.
Code: Selecteer alles
Dim hoogte, breedte As Integer
Const maximum As Long = 459
Dim Last_status As Boolean
Private Property Positie_Z As String
Dim background_kleur As Color
Dim myBitmap As New Bitmap("F:\DATA\SOFT\CODE_HOST\test_usb_host\test_usb_host\pic\new2.bmp")
Dim g As Graphics
Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
g = Me.CreateGraphics()
background_kleur = Me.BackColor()
Me.PictureBox1.BackColor() = background_kleur
Last_status = False
End Sub
Code: Selecteer alles
Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
Last_status = Not Last_status
RadioButton1.Checked = Not Last_status
Me.Label1.Text = "rrrrr"
Me.Label1.Update()
g.Clear(background_kleur)
If Last_status Then
g.DrawArc(Pens.Black, 1, 1, 100, 100, 0, 360)
Else
g.DrawArc(Pens.Black, 1, 1, 300, 300, 0, 360)
End If
g.DrawImage(myBitmap, 100, 100)
End Sub