<span style="font-family:Times New Roman;font-size:medium
<div style="color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:67%;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;background-position:initial initial;margin:8px Guys,
<br/>
Need ya help, please.
I have a PictureBox control where I set up a region.
Is it possible to cut the "regioned" context into a Bitmap object?
<br/>
var path = new GraphicsPath();
Point[] points = new Point[5];
points[0] = new Point(10, 10);
points[1] = new Point(200, 10);
points[2] = new Point(10, 200);
points[3] = new Point(200, 200);
points[4] = new Point(250, 250);
path.AddCurve(points);
Region reg = new Region(path);
Result.Region = reg;
Result.Image.Save("c:\region.bmp", ImageFormat.Bmp);
<br/>
Quite easy to understand what I meant to implement: just cut selected by Region part of the PictureBoxs Image into a bitmap.
<br/>
Any idea?
<br/>
I remember the region is on low level just prevents graphic adapter blitter from copying pixels to outer area, only inner area is shown.
<br/>
Im just wondering if there is a way to extract the cut area.
<br/>
Hate to do it manually.
<br/>
<span style="font-family:Arial;font-size:small <span style="font-size:13px;white-space
re <br/>
View the full article
<div style="color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:67%;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;background-position:initial initial;margin:8px Guys,
<br/>
Need ya help, please.
I have a PictureBox control where I set up a region.
Is it possible to cut the "regioned" context into a Bitmap object?
<br/>
var path = new GraphicsPath();
Point[] points = new Point[5];
points[0] = new Point(10, 10);
points[1] = new Point(200, 10);
points[2] = new Point(10, 200);
points[3] = new Point(200, 200);
points[4] = new Point(250, 250);
path.AddCurve(points);
Region reg = new Region(path);
Result.Region = reg;
Result.Image.Save("c:\region.bmp", ImageFormat.Bmp);
<br/>
Quite easy to understand what I meant to implement: just cut selected by Region part of the PictureBoxs Image into a bitmap.
<br/>
Any idea?
<br/>
I remember the region is on low level just prevents graphic adapter blitter from copying pixels to outer area, only inner area is shown.
<br/>
Im just wondering if there is a way to extract the cut area.

<br/>
Hate to do it manually.
<br/>
<span style="font-family:Arial;font-size:small <span style="font-size:13px;white-space

View the full article