-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThreadedStorage.cs
32 lines (26 loc) · 922 Bytes
/
ThreadedStorage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
namespace ImageMosaicGenerator
{
public class ThreadedStorage
{
// This stores the paths to all tile images
private string[] TilePaths;
// This stores the ImagePaths as a queue used for multi threading
public readonly Queue<string> ImagePathsQueue;
// This stores both the path to the tile images and its colors
public List<ImagePathColor> TilesColors = new List<ImagePathColor>();
//This just stores the image
public string ImagePath;
public int TileSize;
public ThreadedStorage(string[] imagePaths, string image, int tileSize)
{
TilePaths = imagePaths;
ImagePathsQueue = new Queue<string>(TilePaths);
ImagePath = image;
TileSize = tileSize;
}
}
}