- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
public Image ResultImage
{
get
{
return GetCut();
}
}
private Image GetCut()
{
Bitmap b1 = new Bitmap(border.Width, border.Height);
Bitmap b = new Bitmap(pictureBox1.Image.GetThumbnailImage(pictureBox1.Width, pictureBox1.Height, new Image.GetThumbnailImageAbort(fff), IntPtr.Zero));
int x = border.Location.X;
int y = border.Location.Y;
int x1 = border.Location.X + border.Width;
int y1 = border.Location.Y + border.Height;
for (int i = x; i < x1; i++)
{
for (int j = y; j < y1; j++)
{
b1.SetPixel(i - x, j - y, b.GetPixel(i, j));
}
}
return b1;
}
public bool fff()
{
return false;
}
guest 11.08.2009 16:41 # −1