In this case each time i change the numericUpDown value it will create a new directory.
The numericUpDoown set to minimum 10 and maximum 502.
In this case the file i'm using is 512x512 resolution.
What i want to do is that if the numericUpdown for example is set to value 10 and i will click on a confirm button it will create many directories each directory name should be like this:
SecondProcess_5132014-559-502x502
Next directory will be created will have this name:
SecondProcess_5132014-549-492x492
Next directory
SecondProcess_5132014-539-482x482
And if the value in the numericUpDown is now 20 the the first directory will be:
SecondProcess_5132014-559-492x492
Then
SecondProcess_5132014-559-472x472
So i have now this code but i want to create all this directories automatic:
What it does is each time i change the numericUpDown value if it's 10 and i click the button it will create a directory and put there all images and the animated gif i created.
If i change the numericupdown value to 20 and click the button it will create another directory with images and animated gif.
But i want is to have another button if i will click on him and the vlaue is 10 so automatic it will create the number of directories according to the file resolution with the backgroundworker.
In this example numeric = 10
and width = 512
So it supposed to create 51 directories but instead it created only one directory.
Another problem is that 512/10 = 51.2 i can't create 51.2 directories so how do i check if it's 51.2 or 51.3 or 51.9 to tell it to create only 51 directories ?
Another problem is that 512/10 = 51.2 i can't create 51.2 directories
so how do i check if it's 51.2 or 51.3 or 51.9 to tell it to create
only 51 directories ?
in another thread (background worker) loop over a mkdir with a formatted string with the appropriate name.
mkdir("./some/path/string");
You have access to the file resolution, so you can regex that information, and make an int from it. From there you can find which is the max of the two resolutions. Then loop over the max and decrement both, creating a new directory.