Initial commit

This commit is contained in:
2015-12-24 11:53:23 +01:00
commit d258be4ebd
16 changed files with 1079 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
*.exe
*.pdb
*/bin/*
*/obj/*
*.user
.vs

22
ImageView.sln Normal file
View File

@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageView", "ImageView\ImageView.csproj", "{B1B8280E-A303-4E09-892D-382A6AB206E3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B1B8280E-A303-4E09-892D-382A6AB206E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1B8280E-A303-4E09-892D-382A6AB206E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1B8280E-A303-4E09-892D-382A6AB206E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1B8280E-A303-4E09-892D-382A6AB206E3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,125 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ImageView.Controls
{
public class CtrImageViewer : PictureBox
{
#region Declarations
Image _imageShow = null;
// Image projection
private double offsetX = 0;
private double offsetY = 0;
private double scaleX = 1.0f;
private double scaleY = 1.0f;
#endregion
#region Properties
public Image ImageShow
{
get { return _imageShow; }
set
{
lock (this)
{
_imageShow = value;
this.Invalidate();
}
}
}
#endregion
#region Control life cycle
public CtrImageViewer()
{
BackColor = Color.Black;
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
Redraw(pe.Graphics);
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
//Redraw(null);
this.Invalidate();
}
#endregion
#region Private methods
private void Redraw(Graphics graph)
{
if (_imageShow == null)
{
return;
}
lock (_imageShow)
{
if (graph == null)
{
graph = this.CreateGraphics();
}
// Calcular dimensiones a dibujar y centrar
int imgDrawWidth;
int imgDrawHeight;
float imgDrawX = 0;
float imgDrawY = 0;
float relation = (float)_imageShow.Width / (float)_imageShow.Height;
if (relation > 0)
{
// Imagen mas ancha que alta
imgDrawHeight = (int)(this.Width / relation);
if (imgDrawHeight > this.Height)
{
imgDrawHeight = this.Height;
imgDrawWidth = (int)(this.Height * relation);
imgDrawX = ((this.Width - imgDrawWidth) / 2.0f);
}
else
{
imgDrawWidth = this.Width;
imgDrawY = ((this.Height - imgDrawHeight) / 2.0f);
}
}
else
{
// Imagen mas alta que ancha
imgDrawWidth = (int)(this.Width * relation);
if (imgDrawWidth > this.Width)
{
imgDrawWidth = this.Width;
imgDrawHeight = (int)(this.Height / relation);
imgDrawY = ((this.Height - imgDrawHeight) / 2.0f);
}
else
{
imgDrawHeight = this.Height;
imgDrawX = ((this.Width - imgDrawWidth) / 2.0f);
}
}
graph.DrawImage(_imageShow, imgDrawX, imgDrawY, imgDrawWidth, imgDrawHeight);
offsetX = imgDrawX;
offsetY = imgDrawY;
scaleX = (double)imgDrawWidth / (double)_imageShow.Width;
scaleY = (double)imgDrawHeight / (double)_imageShow.Height;
}
}
#endregion
}
}

109
ImageView/FrmImageView.Designer.cs generated Normal file
View File

@@ -0,0 +1,109 @@
namespace ImageView
{
partial class FrmImageView
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmImageView));
this.btnNext = new System.Windows.Forms.Button();
this.btnPrev = new System.Windows.Forms.Button();
this.btnSelectInExplorer = new System.Windows.Forms.Button();
this.picImageView = new ImageView.Controls.CtrImageViewer();
((System.ComponentModel.ISupportInitialize)(this.picImageView)).BeginInit();
this.SuspendLayout();
//
// btnNext
//
this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnNext.Location = new System.Drawing.Point(576, 521);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(75, 23);
this.btnNext.TabIndex = 1;
this.btnNext.Text = "Next";
this.btnNext.UseVisualStyleBackColor = true;
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnPrev
//
this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnPrev.Location = new System.Drawing.Point(13, 521);
this.btnPrev.Name = "btnPrev";
this.btnPrev.Size = new System.Drawing.Size(75, 23);
this.btnPrev.TabIndex = 2;
this.btnPrev.Text = "Prev";
this.btnPrev.UseVisualStyleBackColor = true;
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
//
// btnSelectInExplorer
//
this.btnSelectInExplorer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSelectInExplorer.Location = new System.Drawing.Point(94, 521);
this.btnSelectInExplorer.Name = "btnSelectInExplorer";
this.btnSelectInExplorer.Size = new System.Drawing.Size(94, 23);
this.btnSelectInExplorer.TabIndex = 3;
this.btnSelectInExplorer.Text = "SelectInExplorer";
this.btnSelectInExplorer.UseVisualStyleBackColor = true;
this.btnSelectInExplorer.Click += new System.EventHandler(this.btnSelectInExplorer_Click);
//
// picImageView
//
this.picImageView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.picImageView.BackColor = System.Drawing.Color.Black;
this.picImageView.ImageShow = null;
this.picImageView.Location = new System.Drawing.Point(0, 0);
this.picImageView.Name = "picImageView";
this.picImageView.Size = new System.Drawing.Size(664, 515);
this.picImageView.TabIndex = 0;
this.picImageView.TabStop = false;
//
// FrmImageView
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(663, 550);
this.Controls.Add(this.btnSelectInExplorer);
this.Controls.Add(this.btnPrev);
this.Controls.Add(this.btnNext);
this.Controls.Add(this.picImageView);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmImageView";
this.Text = "ImageView";
((System.ComponentModel.ISupportInitialize)(this.picImageView)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Controls.CtrImageViewer picImageView;
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.Button btnPrev;
private System.Windows.Forms.Button btnSelectInExplorer;
}
}

107
ImageView/FrmImageView.cs Normal file
View File

@@ -0,0 +1,107 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
namespace ImageView
{
public partial class FrmImageView : Form
{
private string _directoryPath = null;
private List<string> _files = null;
private string _imagePath = null;
private List<string> files
{
get {
if (_files == null)
{
_files = Directory.GetFiles(_directoryPath).ToList();
}
return _files;
}
}
public FrmImageView(string imagePath)
{
InitializeComponent();
_directoryPath = Path.GetDirectoryName(imagePath);
SetImage(imagePath);
}
private bool SetImage(string imagePath)
{
_imagePath = imagePath;
Image image;
try
{
image = Bitmap.FromFile(_imagePath);
}
catch (Exception) { return false; }
picImageView.ImageShow = image;
Text = Path.GetFileName(_imagePath);
return true;
}
private string NextFile(string filename)
{
int idx = files.IndexOf(filename);
idx++;
if (idx >= files.Count)
{
return null;
}
return files[idx];
}
private string PrevFile(string filename)
{
int idx = files.IndexOf(filename);
idx--;
if (idx < 0)
{
return null;
}
return files[idx];
}
private void NextImage()
{
string filename = _imagePath;
do
{
filename = NextFile(filename);
if (filename == null) { break; }
if (SetImage(filename)) { break; }
} while (true);
}
private void PrevImage()
{
string filename = _imagePath;
do
{
filename = PrevFile(filename);
if (filename == null) { break; }
if (SetImage(filename)) { break; }
} while (true);
}
private void btnNext_Click(object sender, EventArgs e)
{
NextImage();
}
private void btnPrev_Click(object sender, EventArgs e)
{
PrevImage();
}
private void btnSelectInExplorer_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", _imagePath));
}
}
}

287
ImageView/FrmImageView.resx Normal file
View File

@@ -0,0 +1,287 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAMDAAAAEAIACoJQAAFgAAACgAAAAwAAAAYAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8B9fX1au3t7eP39/f39vb29/b29vf29vb39vb29/b2
9vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/b2
9vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/b29vf29vb39vb29/f3
9/ft7e3e/Pz8VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD09PR0y8vL8iQkJP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8wMDD/3Nzc8vz8/FQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADy8vLuFxcX/wMD
A/8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xER
Ef8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xER
Ef8RERH/ERER/xEREf8RERH/ERER/xEREf8BAQH/Ly8v/+3t7d0AAAAAAAAAAAAAAAAAAAAAAAAAAP//
/xPo6OjxAAAA/yoqKv/7+/v/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx
8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx
8f/x8fH/8fHx//Hx8f/x8fH/8fHx//Hx8f/x8fH/8fHx//z8/P8PDw//AQEB//f39/gAAAAAAAAAAAAA
AAAAAAAAAAAAAP///xrk5OTwAAAA/yoqKv/u7u7/////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////Pz8/8PDw//AAAA//j4
+PgAAAAAAAAAAAAAAAAAAAAAAAAAAP///xrk5OTwAAAA/yoqKv/u7u7/////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////Pz
8/8PDw//AAAA//j4+PgAAAAAAAAAAAAAAAAAAAAAAAAAAP///xrk5OTwAAAA/yoqKv/u7u7/////////
///4+Pj/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d
3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3d3d//v7
+/////////////Pz8/8PDw//AAAA//j4+PgAAAAAAAAAAAAAAAAAAAAAAAAAAP///xrk5OTwAAAA/yoq
Kv/u7u7////////////Kysr/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+PgAAAAAAAAAAP///wX///8s////M///
/0jk5OTwAAAA/yoqKv/x8fH////////////Kysr/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj///8C8PDwh/T0
9PTT09PtycnJ7cnJye2kpKT1AAAA/x8fH//IyMj/zc3N/83Nzf+Pj4//AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj09PR0wMDA8w4ODv8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/+Pj4/////////////Pz
8/8PDw//AAAA//j4+Pjs7OzgISEh/wMDA/9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RE
RP9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RE
RP9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RERP9ERET/RERE/0RERP8MDAz/AAAA/+Pj
4/////////////Pz8/8PDw//AAAA//j4+Pj39/f4AAAA/wsLC//7+/v/7e3t/+3t7f/t7e3/7e3t/+3t
7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t
7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t/+3t7f/t7e3/7e3t//f3
9/8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsL
C//09PT/////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj4+Pj4AAAA/wsLC//09PT////////////4+Pj/u7u7/7u7u/+7u7v/u7u7/7u7u/+7u7v/u7u7/7u7
u/+7u7v/u7u7/7u7u/+7u7v/u7u7/7u7u/+7u7v/u7u7/7u7u/+7u7v/u7u7/7u7u/+7u7v/u7u7/7u7
u/+7u7v/u7u7/7u7u/+7u7v/u7u7//Dw8P///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz
8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj
4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t
7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////
///m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bG
xv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsL
C//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz
8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj
4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t
7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////
///m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/zc3N/9LS0v/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/8bG
xv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsL
C//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/OTk5//Hx8f/x8fH/2NjY/0tLS/8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj4+Pj4AAAA/wsLC//09PT////////////m5ub/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8zMzP/8PDw//////////////////Dw8P/e3t7/VVVV/wEB
Af8AAAD/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz
8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////t7e3/CQkJ/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/zk5Of/x8fH/////////////////////////
////////8fHx/9jY2P9LS0v/AAAA/wAAAP8AAAD/AAAA/8bGxv///////////+3t7f8uLi7/AAAA/+Pj
4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT////////////29vb/5OTk/zo6
Ov8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/OTk5//Hx8f//////////////
///////////////////////////////////x8fH/2tra/0tLS/8AAAD/AAAA/8bGxv///////////+3t
7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////
//////////////Ly8v+hoaH/CwsL/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8zMzP/8PDw////
//////////////////////////////////////////////////////////////Dw8P/e3t7/VVVV/8bG
xv///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsL
C//09PT////////////////////////////19fX/5OTk/zo6Ov8AAAD/AAAA/wAAAP8AAAD/AAAA/zg4
OP/x8fH/////////////////////////////////////////////////////////////////////////
////////8fHx//39/f///////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj4+Pj4AAAA/wsLC//09PT///////////////////////////////////////Pz8/+VlZX/CQkJ/wAA
AP8AAAD/ODg4//Dw8P//////////////////////////////////////////////////////////////
/////////////////////////////////////////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz
8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////////////////////////////////////
///19fX/5OTk/zo6Ov84ODj/8fHx///////////////////////////////////////x8fH/9vb2/+3t
7f/09PT/+fn5/////////////////////////////////////////////////+3t7f8uLi7/AAAA/+Pj
4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////////////////////
//////////////////////////////Ly8v/z8/P///////////////////////////////////////Ly
8v9hYWH/BQUF/wAAAP8YGBj/qqqq//Ly8v///////////////////////////////////////////+3t
7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsLC//09PT/////////
////////////////////////////////////////////////////////////////////////////////
////////8fHx/1JSUv8AAAD/AAAA/wAAAP8AAAD/AQEB/7y8vP/8/Pz/////////////////////////
/////////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4+Pj4+Pj4AAAA/wsL
C//09PT/////////////////////////////////////////////////////////////////////////
////////////////////////5+fn/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/zo6Ov/u7u7/////////
/////////////////////////////+3t7f8uLi7/AAAA/+Pj4/////////////Pz8/8PDw//AAAA//j4
+Pj4+Pj4AAAA/wsLC//09PT/////////////////////////////////////////////////////////
////////////////////////////////////////y8vL/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/xgY
GP/x8fH//////////////////////////////////////+3t7f8uLi7/AAAA/97e3v/v7+//7e3t//r6
+v8PDw//AAAA//f39/j4+Pj4AAAA/wsLC//09PT/////////////////////////////////////////
////////////////////////////////////////////////////////6urq/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/z09Pf/u7u7//////////////////////////////////////+3t7f8uLi7/AAAA/yoq
Kv8zMzP/MzMz/zMzM/8DAwP/ICAg/+3t7eL4+Pj4AAAA/wsLC//09PT/////////////////////////
////////////////////////////////////////////////////////////////////////8fHx/1tb
W/8AAAD/AAAA/wAAAP8AAAD/AQEB/8TExP/9/f3//////////////////////////////////////+3t
7f8uLi7/AAAA/wAAAP8AAAD/AAAA/wAAAP8QEBD/wcHB8/T09HT4+Pj4AAAA/wsLC//09PT/////////
////////////////////////////////////////////////////////////////////////////////
//////////////Ly8v9vb2//CwsL/wAAAP8jIyP/t7e3//Pz8///////////////////////////////
/////////////+3t7f8uLi7/AAAA/7CwsPXb29vu29vb7t7e3u7y8vLz8fHxhP///wL4+Pj4AAAA/wsL
C//09PT/////////////////////////////////////////////////////////////////////////
///////////////////////////////////y8vL/9fX1//f39//x8fH/+vr6////////////////////
/////////////////////////////+3t7f8uLi7/AAAA/+Hh4e////88////Iv///x////8BAAAAAAAA
AAD4+Pj4AAAA/wsLC//09PT/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////+3t7f8uLi7/AAAA/+Hh4e////8eAAAAAAAA
AAAAAAAAAAAAAAAAAAD4+Pj4AAAA/wsLC//09PT/////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////+3t7f8uLi7/AAAA/+Hh
4e////8eAAAAAAAAAAAAAAAAAAAAAAAAAAD4+Pj4AAAA/wsLC//09PT/////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////+3t
7f8uLi7/AAAA/+Hh4e////8eAAAAAAAAAAAAAAAAAAAAAAAAAAD4+Pj4AAAA/wsLC//09PT/////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////+3t7f8uLi7/AAAA/+Hh4e////8eAAAAAAAAAAAAAAAAAAAAAAAAAAD39/f3AgIC/wsL
C//+/v7/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f3
9//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f3
9//39/f/9/f3//f39//39/f/9/f3//39/f8uLi7/AAAA/+bm5vD///8XAAAAAAAAAAAAAAAAAAAAAAAA
AADs7OzZNDQ0/wEBAf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xER
Ef8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xER
Ef8RERH/ERER/xEREf8RERH/ERER/xEREf8RERH/ERER/xEREf8DAwP/FhYW//Ly8vAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAD8/PxO4ODg8jQ0NP8CAgL/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8nJyf/zMzM8vT0
9HQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz8Tuzs7Nn7+/v8////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////z8
/P3q6urc+Pj4ZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAAAAEAAPwAAAAAAAAA/AAAAAAA
AAD4AAAAAAAAAPgAAAAAAAAA+AAAAAAAAAD4AAAAAAAAAPgAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAA
AAAAHwAAAAAAAAAfAAAAAAAAAB8AAAAAAAAAHwAAAAAAAAAfAAAAAAAAAD8AAAAAAAAAPwAAgAAAAAB/
AAA=
</value>
</data>
</root>

View File

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B1B8280E-A303-4E09-892D-382A6AB206E3}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ImageView</RootNamespace>
<AssemblyName>ImageView</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon_images.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controls\CtrImageViewer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="FrmImageView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmImageView.Designer.cs">
<DependentUpon>FrmImageView.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmImageView.resx">
<DependentUpon>FrmImageView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="icon_images.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

22
ImageView/Program.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Windows.Forms;
namespace ImageView
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
if (args.Length < 1)
{
MessageBox.Show("Image Path missing");
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmImageView(args[0]));
}
}
}

View File

@@ -0,0 +1,14 @@
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ImageView")]
[assembly: AssemblyDescription("Simple image viewer")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ImageView")]
[assembly: AssemblyCopyright("Copyright © Valeriano A.R. 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("b1b8280e-a303-4e09-892d-382a6ab206e3")]
[assembly: AssemblyVersion("1.0.*")]

View File

@@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ImageView.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ImageView.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ImageView.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

BIN
ImageView/icon_images.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
ImageView/icon_images.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

69
ImageView/icon_images.svg Normal file
View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="512px"
height="512px"
viewBox="0 0 512 512"
enable-background="new 0 0 512 512"
xml:space="preserve"
inkscape:version="0.91 r13725"
sodipodi:docname="icon_images.svg"
inkscape:export-filename="D:\source\ImageView\ImageView\icon_images.png"
inkscape:export-xdpi="8.4375"
inkscape:export-ydpi="8.4375"><metadata
id="metadata11"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs9" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview7"
showgrid="true"
inkscape:snap-grids="true"
inkscape:snap-page="true"
inkscape:zoom="1.3037281"
inkscape:cx="209.72339"
inkscape:cy="240.5854"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1"><inkscape:grid
type="xygrid"
id="grid4141" /></sodipodi:namedview><rect
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:12.43351555;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4143"
width="400.40585"
height="364.12662"
x="84.966125"
y="119.97706" /><rect
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:33.41794586;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4145"
width="401.06482"
height="363.45166"
x="24.067255"
y="26.777098" /><g
id="g3"><path
d="m 475.57069,99.354824 -31.35487,0 0,-62.703179 c 0,-17.30608 -14.05481,-31.351595 -31.35485,-31.351595 l -376.258239,0 c -17.30788,0 -31.3548537,14.045515 -31.3548537,31.351595 l 0,344.867525 c 0,17.29825 14.0469737,31.35159 31.3548537,31.35159 l 31.354852,0 0,62.70318 c 0,17.29824 14.046977,31.35159 31.354845,31.35159 l 376.258262,0 c 17.30003,0 31.35484,-14.05335 31.35484,-31.35159 l 0,-344.86753 c 0,-17.30607 -14.05481,-31.351586 -31.35484,-31.351586 z M 36.602731,381.51917 l 0,-344.867525 376.258239,0 0,344.867525 -376.258239,0 z m 438.967959,94.05477 -376.258262,0 0,-62.70318 31.354862,0 0,31.35159 31.35486,0 250.83882,0 31.35485,0 0,-31.35159 0,-31.35159 0,-94.05478 0,-156.75798 31.35487,0 0,344.86753 z M 237.11799,133.65348 c 0,24.08781 19.52819,43.61399 43.61852,43.61399 24.0825,0 43.60286,-19.52618 43.60286,-43.61399 l 0,0 c 0,-24.08782 -19.52036,-43.613993 -43.60286,-43.613993 -24.0913,0 -43.61852,19.526173 -43.61852,43.613993 l 0,0 z m -75.09584,28.40452 -94.064567,62.70321 0,62.70318 0,31.3516 0,31.35157 31.354845,0 250.838832,0 31.35486,0 0,-31.35157 0,-31.3516 0,-94.05478 -125.41941,62.70319 -94.06456,-94.0548 z"
id="path5"
style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-width:10.06222534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" /></g></svg>

After

Width:  |  Height:  |  Size: 3.7 KiB