protected void DrawImageExtracts(DrawingContext drawingContext, int pageIndex) { foreach (var imageExtract in ImageExtractHighlights.SafeGet(pageIndex, new List <PDFImageExtract>())) { DrawImageHighlight(drawingContext, imageExtract, ImageHighlightPen, ExtractTransparentFillBrush ); } }
private void AddImgExtractHighlight(int pageIndex, FS_RECTF boundingBox) { var pageHighlights = ImageExtractHighlights .SafeGet(pageIndex, new List <PDFImageExtract>()); pageHighlights.Add(new PDFImageExtract { BoundingBox = boundingBox, PageIndex = pageIndex, }); ImageExtractHighlights[pageIndex] = pageHighlights; }