How do you compute a view icon on an xpage?

How do you compute a view icon on an xpage?

Subject: “Harness the power…” tutorial

Are you familiar with the “Harness the power of XPages in Lotus Domino Designer” by Chris Toohey? Amongst other stuff it has section dealing with computed view icons, i.e. images that are stored inside the docs themselves. But of course you also could take the images from somewhere else instead.

If you don’t have it already, here’s the link: