VB Code:
  1. Private Sub Command2_Click()
  2.     z = 2
  3.     pic2.Height = pic1.Height / z
  4.     pic2.Width = pic1.Width / z
  5.     For x = 0 To pic2.Width
  6.         For y = 0 To pic2.Height
  7.             StretchBlt pic2.hdc, x, y, z, z, pic1.hdc, x * z, y * z, z, z, &HCC0020
  8.         Next y
  9.     Next x
  10.     pic2.Refresh
  11.     Clipboard.SetData pic2.[b]Image[/b]
  12. End Sub