Hi,
The question is in the title.
I tried that, but I only got a black square instead of the image.
vtkNew<vtkPNGReader> reader;
reader->SetFileName("icon.png");
vtkImageData* icon = reader->GetOutput();
...
vtkSmartPointer<vtkLegendBoxActor> legend =
vtkSmartPointer<vtkLegendBoxActor>::New();
legend->SetNumberOfEntries(1);
...
legend->SetEntry(2, icon, "Label", color);