Skip to content

Commit

Permalink
Revert "ref"
Browse files Browse the repository at this point in the history
This reverts commit 7efb483.
  • Loading branch information
alexfcoding committed Jun 23, 2019
1 parent 7efb483 commit 62a9fcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 97 deletions.
88 changes: 0 additions & 88 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -1340,91 +1340,3 @@ GlyphRenderer/bin/Debug/used/[06] d2a7wgrkxa.jpg
GlyphRenderer/bin/Debug/used/[06] 0m4vxfbiv4.jpg
GlyphRenderer/bin/Debug/output/[06] d2a7wgrkxa.png
GlyphRenderer/bin/Debug/output/[06] 0m4vxfbiv4.png
GlyphRenderer/bin/Debug/output/1009217802_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1066246885_45165-3.jpg
GlyphRenderer/bin/Debug/output/1072195634_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1075740975_45165-3.jpg
GlyphRenderer/bin/Debug/output/1310196528_45165-3.jpg
GlyphRenderer/bin/Debug/output/132577923_45165-3.jpg
GlyphRenderer/bin/Debug/output/1348524333_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1403605023_45165-3.jpg
GlyphRenderer/bin/Debug/output/140475065_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1412644349_45165-3.jpg
GlyphRenderer/bin/Debug/output/1413099113_45165-3.jpg
GlyphRenderer/bin/Debug/output/1437413165_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1466128091_031f73c544.png
GlyphRenderer/bin/Debug/output/1486377244_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1496558754_031f73c544.png
GlyphRenderer/bin/Debug/output/1516976020_BitCoin.jpg
GlyphRenderer/bin/Debug/output/154943582_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1571888597_45165-3.jpg
GlyphRenderer/bin/Debug/output/1583499193_45165-3.jpg
GlyphRenderer/bin/Debug/output/1639321549_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1657232088_BitCoin.jpg
GlyphRenderer/bin/Debug/output/175880155_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1798279146_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1812124786_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1826138539_BitCoin.jpg
GlyphRenderer/bin/Debug/output/182802975_BitCoin.jpg
GlyphRenderer/bin/Debug/output/1905701394_BitCoin.jpg
GlyphRenderer/bin/Debug/output/192529721_45165-3.jpg
GlyphRenderer/bin/Debug/output/2030682736_031f73c544.png
GlyphRenderer/bin/Debug/output/2051554766_BitCoin.jpg
GlyphRenderer/bin/Debug/output/2066087826_45165-3.jpg
GlyphRenderer/bin/Debug/output/2080101579_45165-3.jpg
GlyphRenderer/bin/Debug/output/2086050328_BitCoin.jpg
GlyphRenderer/bin/Debug/output/2087024399_45165-3.jpg
GlyphRenderer/bin/Debug/output/2106986901_BitCoin.jpg
GlyphRenderer/bin/Debug/output/2121455418_BitCoin.jpg
GlyphRenderer/bin/Debug/output/2122597602_45165-3.jpg
GlyphRenderer/bin/Debug/output/230960845_45165-3.jpg
GlyphRenderer/bin/Debug/output/231312290_BitCoin.jpg
GlyphRenderer/bin/Debug/output/293315800_45165-3.jpg
GlyphRenderer/bin/Debug/output/316823643_45165-3.jpg
GlyphRenderer/bin/Debug/output/41117821_45165-3.jpg
GlyphRenderer/bin/Debug/output/419661685_BitCoin.jpg
GlyphRenderer/bin/Debug/output/456793060_031f73c544.png
GlyphRenderer/bin/Debug/output/48040641_45165-3.jpg
GlyphRenderer/bin/Debug/output/522564270_BitCoin.jpg
GlyphRenderer/bin/Debug/output/538526416_BitCoin.jpg
GlyphRenderer/bin/Debug/output/543733499_45165-3.jpg
GlyphRenderer/bin/Debug/output/668027421_45165-3.jpg
GlyphRenderer/bin/Debug/output/67380266_BitCoin.jpg
GlyphRenderer/bin/Debug/output/693651770_45165-3.jpg
GlyphRenderer/bin/Debug/output/694912743_BitCoin.jpg
GlyphRenderer/bin/Debug/output/717614377_45165-3.jpg
GlyphRenderer/bin/Debug/output/764630063_45165-3.jpg
GlyphRenderer/bin/Debug/output/789463422_031f73c544.png
GlyphRenderer/bin/Debug/output/849350677_BitCoin.jpg
GlyphRenderer/bin/Debug/output/863819194_BitCoin.jpg
GlyphRenderer/bin/Debug/output/871429434_031f73c544.png
GlyphRenderer/bin/Debug/output/880404217_BitCoin.jpg
GlyphRenderer/bin/Debug/output/887781801_BitCoin.jpg
GlyphRenderer/bin/Debug/output/975761105_BitCoin.jpg
GlyphRenderer/bin/Debug/prepare_/031f73c544.png
GlyphRenderer/bin/Debug/prepare_/2.jpg
GlyphRenderer/bin/Debug/prepare_/45165-3.jpg
GlyphRenderer/bin/Debug/prepare_/872310.png
GlyphRenderer/bin/Debug/prepare_/BitCoin.jpg
GlyphRenderer/bin/Debug/prepare_/csharp.png
GlyphRenderer/bin/Debug/prepare_/d0M4VxfBIV4.jpg
GlyphRenderer/bin/Debug/prepare_/fd2a7WGrKxA.jpg
GlyphRenderer/bin/Debug/prepare_/I_3FP4nujj8.jpg
GlyphRenderer/bin/Debug/prepare_/keM7pMdBsyM.jpg
GlyphRenderer/bin/Debug/prepare_/khyzyl-sal.jpg
GlyphRenderer/bin/Debug/prepare_/lBQpu6ISzYI.jpg
GlyphRenderer/bin/Debug/prepare_/mp,840x830,matte,f8f8f8,t-pad,1000x1000,f8f8f8.jpg
GlyphRenderer/bin/Debug/prepare_/mZhU5vt5TIQ.jpg
GlyphRenderer/bin/Debug/prepare_/neon_architecture_4k-wide.jpg
GlyphRenderer/bin/Debug/prepare_/pius-bak.jpg
GlyphRenderer/bin/Debug/prepare_/Pk_EqU0UvyY.jpg
GlyphRenderer/bin/Debug/prepare_/Qvd5tynaLm8.jpg
GlyphRenderer/bin/Debug/prepare_/ROrgVZZ_RV4.jpg
GlyphRenderer/bin/Debug/prepare_/v3.jpg
GlyphRenderer/bin/Debug/prepare_/v4.jpg
GlyphRenderer/bin/Debug/prepare_/vas.jpg
GlyphRenderer/bin/Debug/prepare_/vas.png
GlyphRenderer/bin/Debug/prepare_/vas5.jpg
GlyphRenderer/bin/Debug/prepare_/vas6.jpg
GlyphRenderer/bin/Debug/prepare_/Wallpaper.jpg
GlyphRenderer/bin/Release/GlyphRenderer.exe.config
17 changes: 8 additions & 9 deletions GlyphRenderer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ private string[] LoadConfig(TextBox pythonPath)
return configLines;
}

private void FillListBox(ListBox inputListbox, string Folder, List<string> fileExtensions)
private void FillListBox(ListBox inputListbox, string Folder, List<string> FileExtensions)
{
DirectoryInfo dirInfo = new DirectoryInfo(Folder);

for (int i = 0; i < fileExtensions.Count; i++)
for (int i = 0; i < FileExtensions.Count; i++)
{
FileInfo[] Files = dirInfo.GetFiles(fileExtensions[i]);
FileInfo[] Files = dirInfo.GetFiles(FileExtensions[i]);

foreach (FileInfo file in Files)
{
Expand Down Expand Up @@ -182,7 +182,7 @@ private void CsharpAlgorithms()
ExportFile(bitmapOutput);
}

public DrawingContext RenderGlyphsAlgorithm(DrawingContext drawingContext, BitmapSource image, string textToDraw)
public DrawingContext RenderGlyphsAlgorithm(DrawingContext drawingContext, BitmapSource image, string TextToDraw)
{
Random rndChar = new Random();
int fontSize = (int)sliderFontSize.Value;
Expand Down Expand Up @@ -213,13 +213,13 @@ public DrawingContext RenderGlyphsAlgorithm(DrawingContext drawingContext, Bitma
return drawingContext;
}

public BitmapSource ProcessImage(BitmapSource image, bool drawOnPicture)
public BitmapSource ProcessImage(BitmapSource image, bool DrawOnPicture)
{
var visual = new DrawingVisual();

using (var drawingContext = visual.RenderOpen())
{
if (drawOnPicture == true)
if (DrawOnPicture == true)
drawingContext.DrawImage(image, new Rect(0, 0, image.PixelWidth, image.PixelHeight));
else
{
Expand All @@ -242,7 +242,7 @@ public BitmapSource ProcessImage(BitmapSource image, bool drawOnPicture)
return bitmap;
}

public DrawingContext RenderCharsAlgorithm(DrawingContext drawingContext, BitmapSource image, string textToDraw)
public DrawingContext RenderCharsAlgorithm(DrawingContext drawingContext, BitmapSource image, string TextToDraw)
{
Random rndChar = new Random();
int fontSize = (int)sliderFontSizeChars.Value;
Expand All @@ -253,7 +253,7 @@ public DrawingContext RenderCharsAlgorithm(DrawingContext drawingContext, Bitmap
for (int y = 0; y < image.PixelHeight; y += fontResolution)
{
var text = new FormattedText(
textToDraw[rndChar.Next(0, textToDraw.Length)].ToString(),
TextToDraw[rndChar.Next(0, TextToDraw.Length)].ToString(),
CultureInfo.InvariantCulture,
FlowDirection.LeftToRight,
new Typeface("Consolas"),
Expand Down Expand Up @@ -510,7 +510,6 @@ private void btnConnectToServer_Click(object sender, RoutedEventArgs e)
builder.Append(Encoding.UTF8.GetString(data, 0, bytes));
}
while (socket.Available > 0);

listServerCommunication.Items.Add("Server answer: " + builder.ToString());

socket.Shutdown(SocketShutdown.Both);
Expand Down

0 comments on commit 62a9fcc

Please sign in to comment.