lol
ja je moet overall eens proberen e
denk niet dat het werkt
Code:
Dim org As Image = New Bitmap("C:\open16.png")
' Dim img As Image = New Bitmap(org.Width, org.Height)
' Using g As Graphics = Graphics.FromImage(img)
' g.Clear(RichTextBox13.BackColor)
' Dim rect As Rectangle = New Rectangle(0, 0, org.Width, org.Height)
' g.DrawImage(org, rect, 0, 0, org.Width, org.Height, GraphicsUnit.Pixel)
' End Using
Clipboard.SetImage(org)
RichTextBox13.CreateGraphics().DrawImage(Clipboard.GetImage, -10, 0, New Rectangle(0, 0, RichTextBox13.Width, RichTextBox13.Height), GraphicsUnit.Pixel)
RichTextBox13.Paste(DataFormats.GetFormat(DataFormats.Bitmap))