public void HighlightExtensions(IWriteableBitmap bitmap, Rectangle2I rc, FileItemBase root, Rgba32Color color, string extension) { if (rc.Width <= 0 || rc.Height <= 0) { return; } renderArea = rc; InitPixels(rc, Rgba32Color.Transparent); fixed(Rgba32Color *pBitmapBits = pixels) { RecurseHighlightExtensions(pBitmapBits, root, color, extension); bitmap.SetPixels(pBitmapBits); } }
public void HighlightItems(IWriteableBitmap bitmap, Rectangle2I rc, Rgba32Color color, IEnumerable <ITreemapItem> items) { if (rc.Width <= 0 || rc.Height <= 0) { return; } renderArea = rc; InitPixels(rc, Rgba32Color.Transparent); fixed(Rgba32Color *pBitmapBits = pixels) { foreach (FileItemBase item in items) { HighlightRectangle(pBitmapBits, item.Rectangle, color); } bitmap.SetPixels(pBitmapBits); } }