- I call the BuildScenario method of a Scenario-derived class (in this case Classic).
- Classic creates some random Nebula in the SVGame object.
- I create a PngGenerator of 100x100 pixels in size, representing the full number of cells in the map grid.
- For each cell that contains a Nebula, I set the pixel to a bluish color, otherwise set it to black.
- I make the image the source for an Image object and add this to the Canvas of the game board, sizing it to the full dimensions of the board (3,500 x 3,500) and setting its Stretch property to Stretch.
I was expecting to see sharp edges in the blown up image, but was surprised and happy to see the blended edges that Silverlight produced. Another hurlde overcome (this time thanks to Ian) in my quest to port Solar Vengeance to Silverlight.
See the latest demo build here: