Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shadlc committed Aug 17, 2021
0 parents commit ce68fa6
Show file tree
Hide file tree
Showing 101 changed files with 6,747 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
Binary file added .vs/BrailleArtist/v16/.suo
Binary file not shown.
25 changes: 25 additions & 0 deletions BrailleArtist.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31515.178
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrailleArtist", "BrailleArtist\BrailleArtist.csproj", "{ED959311-ED20-4BC1-BA11-0077A691AE59}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ED959311-ED20-4BC1-BA11-0077A691AE59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ED959311-ED20-4BC1-BA11-0077A691AE59}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED959311-ED20-4BC1-BA11-0077A691AE59}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED959311-ED20-4BC1-BA11-0077A691AE59}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C2D464E3-0B02-40B0-82BE-481C82F3FD8B}
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions BrailleArtist/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
6 changes: 6 additions & 0 deletions BrailleArtist/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
14 changes: 14 additions & 0 deletions BrailleArtist/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Application x:Class="BrailleArtist.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BrailleArtist"
StartupUri="View/MainView.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Assets/Langs/en-US.xaml"/>
<ResourceDictionary Source="Assets/Langs/zh-CN.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
11 changes: 11 additions & 0 deletions BrailleArtist/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Windows;

namespace BrailleArtist
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
}
}
Binary file added BrailleArtist/Assets/Fonts/iconfont.ttf
Binary file not shown.
38 changes: 38 additions & 0 deletions BrailleArtist/Assets/Langs/en-US.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xml:space="preserve">
<sys:String x:Key="WindowTitle">Braille Artist</sys:String>
<sys:String x:Key="Setting">Setting</sys:String>
<sys:String x:Key="Language">Language</sys:String>
<sys:String x:Key="About">About</sys:String>
<sys:String x:Key="Minimize">Minimize</sys:String>
<sys:String x:Key="Maximize">Maximize/Restore</sys:String>
<sys:String x:Key="Close">Close</sys:String>
<sys:String x:Key="ImportHelpText">Drag in or click to import image</sys:String>
<sys:String x:Key="MsgBoxImportErrorText">This file is not supported or be occupied!</sys:String>
<sys:String x:Key="MsgBoxImportErrorTitle">Import Failed</sys:String>
<sys:String x:Key="MsgBoxImportErrorOK">OK</sys:String>
<sys:String x:Key="ImgChooseTitle">Import Image</sys:String>
<sys:String x:Key="ImgChooseType">Image File</sys:String>
<sys:String x:Key="Processing">Processing...</sys:String>
<sys:String x:Key="ColorReverse">Invert Color</sys:String>
<sys:String x:Key="Clockwise">Rotate Clockwise</sys:String>
<sys:String x:Key="AntiClockwise">Rotate AntiClockwise</sys:String>
<sys:String x:Key="FlipHorizontally">Flip Horizontally</sys:String>
<sys:String x:Key="FlipVertically">Flip Vertically</sys:String>
<sys:String x:Key="Size">Size:</sys:String>
<sys:String x:Key="RatioLock">Lock Aspect Ratio</sys:String>
<sys:String x:Key="Width_ToolTip">Braille Art's Width =This / 2</sys:String>
<sys:String x:Key="Height_ToolTip">Braille Art's Height =This / 4</sys:String>
<sys:String x:Key="Level">Level:</sys:String>
<sys:String x:Key="Reset">Reset</sys:String>
<sys:String x:Key="Reset_ToolTip">Reset All Operations</sys:String>
<sys:String x:Key="Draw">Draw</sys:String>
<sys:String x:Key="Draw_ToolTip">Repaint The Braille Art</sys:String>
<sys:String x:Key="Copy">Copy</sys:String>
<sys:String x:Key="Copy_ToolTip">Copy The Entire Braille Art To The Clipboard</sys:String>
<sys:String x:Key="FontSize">FontSize</sys:String>
<sys:String x:Key="Source">Source</sys:String>
<sys:String x:Key="Introduction">Software: Braille Artist Programming Language: C# .Net WPF Open Source Protocol: GPL Copyright 2021 © Shadlc&#x0a;&#x0a;Introduction&#x0a;This is a braille ASCII art generator. The traditional ASCII art generator is inefficient in space utilization. This software can use one braille as 8 pixels to generate ASCII art and display high-quality pictures in the text-only environment.&#x0a;&#x0a;Help&#x0a;Click or drag the file into the box which is in the upper left corner to import the image, then adjust the settings in the lower left corner. The level slider allows users to customize the brightness of the braille art for different effects. After that, click the draw button to generate the braille art. The slider in the upper right side can adjust the fontsize of the braille art for the best display size. You can also press Ctrl and scroll the mouse wheel on the braille art to zoom the size. Finally click the copy button to copy the entire braille art to clipboard.</sys:String>
</ResourceDictionary>
38 changes: 38 additions & 0 deletions BrailleArtist/Assets/Langs/zh-CN.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xml:space="preserve">
<sys:String x:Key="WindowTitle">盲文字符画</sys:String>
<sys:String x:Key="Setting">设置</sys:String>
<sys:String x:Key="Language">语言</sys:String>
<sys:String x:Key="About">关于</sys:String>
<sys:String x:Key="Minimize">最小化</sys:String>
<sys:String x:Key="Maximize">最大化/还原</sys:String>
<sys:String x:Key="Close">关闭</sys:String>
<sys:String x:Key="ImportHelpText">拖入或点击此处导入图片</sys:String>
<sys:String x:Key="MsgBoxImportErrorText">不支持该文件或文件被占用!</sys:String>
<sys:String x:Key="MsgBoxImportErrorTitle">导入失败</sys:String>
<sys:String x:Key="MsgBoxImportErrorOK">好的</sys:String>
<sys:String x:Key="ImgChooseTitle">导入图片</sys:String>
<sys:String x:Key="ImgChooseType">图片文件</sys:String>
<sys:String x:Key="Processing">处理中...</sys:String>
<sys:String x:Key="ColorReverse">反色</sys:String>
<sys:String x:Key="Clockwise">顺时针旋转</sys:String>
<sys:String x:Key="AntiClockwise">逆时针旋转</sys:String>
<sys:String x:Key="FlipHorizontally">左右翻转</sys:String>
<sys:String x:Key="FlipVertically">上下翻转</sys:String>
<sys:String x:Key="Size">大小:</sys:String>
<sys:String x:Key="RatioLock">锁定长宽比</sys:String>
<sys:String x:Key="Width_ToolTip">字符画宽 = 此框数值 / 2</sys:String>
<sys:String x:Key="Height_ToolTip">字符画高 = 此框数值 / 4</sys:String>
<sys:String x:Key="Level">着色度:</sys:String>
<sys:String x:Key="Reset">重置</sys:String>
<sys:String x:Key="Reset_ToolTip">重置所有操作</sys:String>
<sys:String x:Key="Draw">绘制</sys:String>
<sys:String x:Key="Draw_ToolTip">重新绘制像素画</sys:String>
<sys:String x:Key="Copy">复制</sys:String>
<sys:String x:Key="Copy_ToolTip">将整个字符画复制到剪贴板</sys:String>
<sys:String x:Key="FontSize">字号</sys:String>
<sys:String x:Key="Source">源代码</sys:String>
<sys:String x:Key="Introduction">软件名:盲文字符画生成器 编程语言:C# .Net WPF 开源协议:GPL Copyright 2021 © 似然于此&#x0a;&#x0a;软件介绍&#x0a;这是一款图形界面的盲文字符画生成器,传统的字符画生成器空间利用低效,此软件能够利用一个盲文字符作为八个像素点生成字符画,在纯文本环境下展示高质量图片。&#x0a;&#x0a;使用帮助&#x0a;点击或将文件拖入软件左上角的大框进行图片的导入,调整左下角的设置与参数。着色度滑条让用户能够自定义字符画颜色的深浅实现不同的效果,点击绘制按钮生成字符画。右侧上方的滑条能够调整展示字符画的字号,以供最佳的展示大小,也可以在字符画上按住Ctrl然后滚动鼠标滚轮进行缩放,最后点击复制按钮将整个字符画复制到剪贴板。</sys:String>
</ResourceDictionary>
Loading

0 comments on commit ce68fa6

Please sign in to comment.