I would like to create a layer on top of a background-image that has shows a grid with the width of the original pixelsize. So when i zoom into the background-image, the gridwidth grows, as the pixelwidth of the background-image does. Its the effect you can see in photoshop when zooming deep into an image. If you reach a certain zoomlevel, the grid shows up, so you can easily distinguish all the single pixels.
Is that possible? Is there an easy example of how to do that?
When DisplayGrid is True and the Zoom is equal to or greater than 400, a grid is drawn. Each grid box is equivalent to a bitmap pixel.
Look also iegMINZOOMDISPLAYGRID.
This does exactly what you are looking for except it is not a layer. If DisplayGrid = True with the default iegMINZOOMDISPLAYGRID = 400 then the grid appears when the image is zoomed to 400%.