VintaSoft PDF .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions
private void highlightSelectedTextToolStripMenuItem_Click(object sender,
EventArgs e)
{
if (imageViewer.CurrentTool == _viewerTool)
if (_viewerTool.SelectedRegion != null)
{
using (PdfGraphics graphics = PdfGraphics.FromPage(FocusedPage))
{
Color color = Color.FromArgb(70, 255, 255, 0);
PdfBrush brush = new PdfBrush(color,
GraphicsStateBlendMode.Multiply);
TextRegionLine[] lines = _viewerTool.SelectedRegion.Lines;
for (int i = 0; i < lines.Length; i++)
graphics.FillPolygon(brush,
lines[i].SelectionRegion.PolygonPoints);
}
imageViewer.FocusedImage.Reload(true);
}
}
Sincerely, Yuri