Ejemplo n.º 1
0
 public static void writeBlueprint(string filePath, BlueprintPA blueprint, ColorPaletteStyle style)
 {
     if (ColorPaletteStyle.CompactBrick == style)
     {
         renderCompactBrick(filePath, blueprint);
     }
     else if (ColorPaletteStyle.CompactGraph == style)
     {
         renderCompactGraph(filePath, blueprint);
     }
     else if (ColorPaletteStyle.DetailedGrid == style)
     {
         renderDetailedGrid(filePath, blueprint, true);
     }
     else if (ColorPaletteStyle.CompactGrid == style)
     {
         renderDetailedGrid(filePath, blueprint, false);
     }
 }
 public static void WriteBlueprint(string filePath, BlueprintPA blueprint, ColorPaletteStyle style)
 {
     if (ColorPaletteStyle.CompactBrick == style)
     {
         using (var img = RenderCompactBrick(blueprint))
         {
             img.Save(filePath);
         }
     }
     else if (ColorPaletteStyle.CompactGraph == style)
     {
         using (var img = RenderCompactGraph(blueprint, false))
         {
             img.Save(filePath);
         }
     }
     else if (ColorPaletteStyle.CompactSquare == style)
     {
         using (var img = RenderCompactGraph(blueprint, true))
         {
             img.Save(filePath);
         }
     }
     else if (ColorPaletteStyle.DetailedGrid == style)
     {
         using (var img = RenderDetailedGrid(blueprint, true))
         {
             img.Save(filePath);
         }
     }
     else if (ColorPaletteStyle.CompactGrid == style)
     {
         using (var img = RenderDetailedGrid(blueprint, false))
         {
             img.Save(filePath);
         }
     }
 }