Beispiel #1
0
 /// <summary>
 /// Save all layers as a texture in the hard drive as a png image
 /// </summary>
 public void SaveToHDD()
 {
     for (int i = 0; i < layers.Length; i++)
     {
         HDDResources.SaveImage(layers[i].GetTexture(), "layer" + i);
     }
 }
Beispiel #2
0
    /// <summary>
    /// Saves a custom color palette in persistence data path as a png file
    /// </summary>
    public static void SavePaletteInHardDrive()
    {
        SetColorsArray();
        Texture2D texture = new Texture2D(cols, rows);

        texture.SetPixels32(colors);
        texture.filterMode = FilterMode.Point;
        texture.Apply();
        HDDResources.SaveImage(texture, "palette");
    }