Removing All Rectangles
Removing All Rectangles
Hi There
I've added Rectangles using .DrawRectangle, how do I go about removing these Rectangles.
Regards
Derry Taylor
I've added Rectangles using .DrawRectangle, how do I go about removing these Rectangles.
Regards
Derry Taylor
Re: Removing All Rectangles
Hello Derry,
Could you illustrate what you are doing by a code snippet? So far I have no idea if you are processing bitmap or vector documents.
Kind regards,
Could you illustrate what you are doing by a code snippet? So far I have no idea if you are processing bitmap or vector documents.
Kind regards,
Re: Removing All Rectangles
Hi Loic
What I'm doing is defining OCR Zonal areas on a document, when I setup a zonal area, I show the areas I've defined on the document by doing a .DrawRectangle for each area. Now I have the ability to remove a zonal area, and I want to remove the rectangle relating to that zonal area, hope this explains it. Very similar to your OCR example.
Regards
Derry
What I'm doing is defining OCR Zonal areas on a document, when I setup a zonal area, I show the areas I've defined on the document by doing a .DrawRectangle for each area. Now I have the ability to remove a zonal area, and I want to remove the rectangle relating to that zonal area, hope this explains it. Very similar to your OCR example.
Regards
Derry
Re: Removing All Rectangles
Hello Derry,
I still do not understand. Could you provide a code snippet illustrating your explanation?
Kind regards,
Loïc
I still do not understand. Could you provide a code snippet illustrating your explanation?
Kind regards,
Loïc
Re: Removing All Rectangles
Hi Loic
I use the following code the draw the rectangle, I would like to remove the rectangle if need be.
if (oGdPictureImaging.DrawRectangle(m_ImageID,
LeftArea,
TopArea,
WidthArea,
HeightArea,
2,
Color.Red,
true) != GdPictureStatus.OK)
{
MessageBox.Show("Cannot Draw Rectangle.");
}
Regards
Derry
I use the following code the draw the rectangle, I would like to remove the rectangle if need be.
if (oGdPictureImaging.DrawRectangle(m_ImageID,
LeftArea,
TopArea,
WidthArea,
HeightArea,
2,
Color.Red,
true) != GdPictureStatus.OK)
{
MessageBox.Show("Cannot Draw Rectangle.");
}
Regards
Derry
Re: Removing All Rectangles
Hello Derry,
Since you are drawing into a raster Image the only thing you can do is to implement your own undo / redo feature by using cloned version of your bitmap. This can be done using the CreateClonedGdPictureImage() method of the GdPictureImaging class.
Please let us know if you need further information.
With best regards,
Loïc
Since you are drawing into a raster Image the only thing you can do is to implement your own undo / redo feature by using cloned version of your bitmap. This can be done using the CreateClonedGdPictureImage() method of the GdPictureImaging class.
Please let us know if you need further information.
With best regards,
Loïc
Re: Removing All Rectangles
Hi Loic
Thanks for that.
Regards
Derry
Thanks for that.
Regards
Derry
Who is online
Users browsing this forum: No registered users and 2 guests