Skip to content

Commit

Permalink
v 3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simonegli committed Mar 6, 2013
1 parent 0107d88 commit eae654a
Show file tree
Hide file tree
Showing 67 changed files with 557 additions and 5,902 deletions.
Binary file modified Documentation/Xaml Image Converter Manual.docx
Binary file not shown.
Binary file modified Documentation/Xaml Image Converter Manual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion XamlImageConverter.Exe/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Program {
}

if (a.Count == 0 || new[] { "-h", "help", "-help", "?", "/?", "-?" }.Any(s => a.Any(at => s == at.Trim().ToLower()))) {
Console.WriteLine("XamlImageConverter 3.4 by Chris Cavanagh & Simon Egli");
Console.WriteLine("XamlImageConverter 3.5 by Chris Cavanagh & Simon Egli");
Console.WriteLine("Creates snapshots, gif animations or html image maps from XAML, SVG & PSD images\n\r");
Console.Error.WriteLine("XamlImageConverter [-x] [-w] [-s [running time]] [-r] [-v]");
Console.Error.WriteLine(" [-l librarypath] [-p projectpath] configFile { configFile }");
Expand Down
4 changes: 2 additions & 2 deletions XamlImageConverter.Exe/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "3.4.0.0" )]
[assembly: AssemblyFileVersion( "3.4.0.0" )]
[assembly: AssemblyVersion( "3.5.0.0" )]
[assembly: AssemblyFileVersion( "3.5.0.0" )]
16 changes: 15 additions & 1 deletion XamlImageConverter.Exe/XamlImageConverter.Exe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>XamlImageConverter</RootNamespace>
<AssemblyName>convert</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
Expand Down Expand Up @@ -52,6 +52,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -60,6 +61,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
Expand Down Expand Up @@ -119,6 +121,9 @@
<None Include="src\Planet.psd" />
</ItemGroup>
<ItemGroup>
<Content Include="img\ImageMaps\Readme.aspx">
<SubType>ASPXCodeBehind</SubType>
</Content>
<Content Include="img\test\animated-loader-filmstrip.jpg" />
<Content Include="img\test\animated-loader.gif" />
<Content Include="img\test\copyright_bar.png" />
Expand All @@ -129,12 +134,21 @@
<Content Include="img\test\page_header_ctr.png" />
<Content Include="img\test\page_header_lft.png" />
<Content Include="img\test\page_header_rt.png" />
<Content Include="Readme.aspx">
<SubType>ASPXCodeBehind</SubType>
</Content>
<Content Include="src\blog-banner.jpg" />
<Content Include="src\generic-lines.png" />
<Content Include="src\jquery.js" />
<Content Include="src\jquery.maphilight.min.js" />
<Content Include="src\Map_of_USA_with_state_names.svg" />
<Content Include="src\Readme.aspx">
<SubType>ASPXCodeBehind</SubType>
</Content>
<Content Include="src\SiteSpecification.xml" />
<Content Include="src\Soccer_ball_animated.svg" />
<Content Include="src\Tux.svg" />
<Content Include="src\usa.map.html" />
<None Include="__TemplateIcon.ico" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion XamlImageConverter.Exe/app.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
8 changes: 6 additions & 2 deletions XamlImageConverter.Exe/src/MakeImages.xic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
<xic:Snapshot File="Kaxaml.ps" />

</xic:Scene>

<!--
<xic:Scene OutputPath="~/img">
<xic:Xaml Source="Card7.de.xaml" />
<xic:Snapshot File="Karte7.png" Dpi="1200" />
</xic:Scene>

-->
<xic:Scene Source="Planet.psd" OutputPath="~/img">
<xic:Snapshot File="Planet.png" />
<xic:Snapshot File="Planet.xaml" />
Expand All @@ -102,6 +102,10 @@
<xic:ImageMap Image="usa.map.png" File="usa.map.html" ID="usa">
<Areas Elements="WA;OR;CA;AK;ID;NV;AZ;UT;MT;WY;CO;NM;TX;OK;KS;NE;SD;ND;MN;IA;MO;AR;LA;WI;IL;TN;MS;MI;IN;KY;AL;FL;GA;SC;NC;VA;WV;OH;PA;MD;NJ;NY;CT;MA;VT;NH;ME;RI;DE" onclick="alert('State %ID% clicked...');" />
</xic:ImageMap>
<xic:ImageMap Image="usa.map.png" File="Readme.aspx" ID="usa">
<Areas Elements="WA;OR;CA;AK;ID;NV;AZ;UT;MT;WY;CO;NM;TX;OK;KS;NE;SD;ND;MN;IA;MO;AR;LA;WI;IL;TN;MS;MI;IN;KY;AL;FL;GA;SC;NC;VA;WV;OH;PA;MD;NJ;NY;CT;MA;VT;NH;ME;RI;DE" onclick="alert('State %ID% clicked...');" />
</xic:ImageMap>

</xic:Scene>

<xic:Scene OutputPath="~/img" Theme="Aero">
Expand Down
60 changes: 30 additions & 30 deletions XamlImageConverter.Exe/src/MakeImages.xic.xaml.log
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
XamlImageConverter 3.4 by Chris Cavanagh & David Egli
XamlImageConverter 3.5 by Chris Cavanagh & David Egli
MakeImages.xic.xaml:
Error 11 (79,4): Source file C:\Code\XamlImageConverter\XamlImageConverter.Exe\src\Card7.de.xaml not found.
Setting OS Theme to Aero
Created background_top_gradient.png (35 MB RAM used)
Created page_header_lft.png (36 MB RAM used)
Created page_header_ctr.png (37 MB RAM used)
Created page_header_rt.png (37 MB RAM used)
Created main_content_bkgd_lft.png (37 MB RAM used)
Created main_content_bkgd.png (37 MB RAM used)
Created background_top_gradient.png (36 MB RAM used)
Created page_header_lft.png (37 MB RAM used)
Created page_header_ctr.png (38 MB RAM used)
Created page_header_rt.png (38 MB RAM used)
Created main_content_bkgd_lft.png (38 MB RAM used)
Created main_content_bkgd.png (38 MB RAM used)
Created main_content_bkgd_rt.png (38 MB RAM used)
Created animated-loader-filmstrip.jpg (5 frames, 41 MB RAM used)
Created animated-loader-filmstrip.jpg (5 frames, 42 MB RAM used)
Set
Copyright.Content=System.Windows.Controls.Button: Chris Cavanagh & johnshope.com
Created copyright_bar.png (41 MB RAM used)
Created copyright_bar_element.png (41 MB RAM used)
Created modified.page.png (43 MB RAM used)
Created copyright_bar.png (42 MB RAM used)
Created copyright_bar_element.png (42 MB RAM used)
Created modified.page.png (44 MB RAM used)
Reset
Copyright.Content=Copyright © 2008 Chris Cavanagh
Created full.jpg (57 MB RAM used)
Created full.png (58 MB RAM used)
Created full.gif (60 MB RAM used)
Created Kaxaml.png (63 MB RAM used)
Created Kaxaml_film.gif (50 frames, 89 MB RAM used)
Created Planet.png (154 MB RAM used)
Created Planet.xaml (154 MB RAM used)
Created tux.xaml (140 MB RAM used)
Created tux.png (141 MB RAM used)
Created full.jpg (58 MB RAM used)
Created full.png (59 MB RAM used)
Created full.gif (61 MB RAM used)
Created Kaxaml.png (64 MB RAM used)
Created Kaxaml_film.gif (50 frames, 90 MB RAM used)
Created Planet.png (171 MB RAM used)
Created Planet.xaml (171 MB RAM used)
Created tux.xaml (157 MB RAM used)
Created tux.png (158 MB RAM used)
Error 31 (91,4): No element with name "test" found.
Created tuxpart.png (141 MB RAM used)
Created soccer.png (141 MB RAM used)
usa.map.png is up to date.
usa.map.xaml is up to date.
usa.map.html is up to date.
Created button.scene.png (142 MB RAM used)
Created button.png (142 MB RAM used)
Created tuxpart.png (158 MB RAM used)
Created soccer.png (158 MB RAM used)
Created usa.map.png (164 MB RAM used)
Created usa.map.xaml (166 MB RAM used)
Created usa.map.html html image map.
Created Readme.aspx html image map.
Created button.scene.png (167 MB RAM used)
Created button.png (167 MB RAM used)
Created full.xps (1 pages, 0.15 MB)
Created Kaxaml.xps (1 pages, 0.17 MB)
Created C:\Code\XamlImageConverter\XamlImageConverter.Exe\img\animated-loader.gif (20 frames, 158 MB RAM used)
Created C:\Code\XamlImageConverter\XamlImageConverter.Exe\img\Kaxaml.gif (100 frames, 158 MB RAM used)
Created animated-loader.gif (20 frames, 158 MB RAM used)
Created Kaxaml.gif (100 frames, 155 MB RAM used)
Created page_header.pdf (2 pages, 0.14 MB)
Created page_header.ps (3 pages, 12.23 MB)
Created page_header.eps (1 pages, 0.23 MB)
Expand Down
2 changes: 1 addition & 1 deletion XamlImageConverter.Exe/src/Map_of_USA_with_state_names.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions XamlImageConverter.Exe/src/Readme.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml.Linq" %>
<%@ Import Namespace="Silversite.Net.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http:https://www.w3.org/1999/xhtml" >
<head runat="server">
<title>XamlImageConverter - Demo</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.maphighlight.min.js"></script>
<script type="text/javascript">
$(function() {
$('.map').maphilight();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h3>A direct conversion of xaml &gt; png</h3>
<pre><code>&lt;img src="~/XamlImageConverter.Demo/Homepage.xaml.png" runat="server" /&gt;</code></pre>
<img src="~/XamlImageConverter.Demo/Homepage.xaml.png" runat="server" />
<hr />

<h3>A conversion of multiple images with a batch script file, and of an animated gif.</h3>
<pre><code>&lt;img src="~/XamlImageConverter.Demo/MakeImages.xic.xaml?image=~/XamlImageConverter.Demo/Images/animated-loader.gif" runat="server" /&gt;</code></pre>
<img src="~/XamlImageConverter.Demo/MakeImages.xic.xaml?image=~/XamlImageConverter.Demo/Images/animated-loader.gif" runat="server" />
<hr />

<h3>A html image map created from a svg source</h3>
<p>This map was generated from <a href="http:https://en.wikipedia.org/wiki/Image:Map_of_USA_with_state_names.svg">"Map of USA with state names.svg"</a>.
Note that in the current version the font is not resolved correctly.</p>
<pre><code>&lt;asp:ImageMap ID="usamap" runat="server" ImageUrl="~/XamlImageConverter.Demo/MakeImages.xic.xaml" CssClass="map" /&gt;</code></pre>
<asp:ImageMap ID="usa" runat="server" ImageUrl="~/XamlImageConverter.Demo/MakeImages.xic.xaml" CssClass="map" />
<hr />

<h3>A PDF of the above homepage</h3>
<pre><code>&lt;asp:HyperLink runat="server" NavigateUrl="~/XamlImageConverter.Demo/Homepage.xaml.pdf"&gt;Homepage PDF&lt;/asp:HyperLink&gt;</code></pre>
<asp:HyperLink runat="server" NavigateUrl="~/XamlImageConverter.Demo/Homepage.xaml.pdf">Homepage PDF</asp:HyperLink>
<hr />

<h3>Conversion of 3D content doesn't work under IIS (only on IIS6).</h3>
<pre><code>&lt;img src="~/XamlImageConverter.Demo/Kaxaml.xaml.gif?Storyboard=rotate&Frames=50" runat="server" /&gt;</code></pre>
<img src="~/XamlImageConverter.Demo/Kaxaml.xaml.gif?Storyboard=rotate&Frames=50" runat="server" />

<h3>Conversion of 3D content doesn't work under IIS, so here is a precompiled version.</h3>
<pre><code>&lt;img src="~/XamlImageConverter.Demo/Kaxaml.gif" runat="server" /&gt;</code></pre>
<img src="~/XamlImageConverter.Demo/Kaxaml.gif" runat="server" />

<h3>Direct xaml in ASP.NET.</h3>
<asp:TextBox ID="buttontext" runat="server">I'm a button</asp:TextBox><asp:Button runat="server" OnClick="Update" Text="Update" />

<pre><code>
&lt;asp:TextBox ID="buttontext" runat="server"&gt;I'm a button&lt;/asp:TextBox&gt;&lt;asp:Button ID="Button1" runat="server" OnClick="Update" Text="Update" /&gt;
&lt;xic:XamlImage ID="dynamicbutton" runat="server" ImageUrl="~/XamlImageConverter.Demo/Images/XamlImage.png"&gt;
&lt;Button&gt;I'm a Button&lt;/Button&gt;
&lt;/xic:XamlImage&gt;
&lt;script runat="server"&gt;
protected void Update(object sender, EventArgs e) {
var dynamicbutton = (XamlImage)Page.FindControl("dynamicbutton");
dynamicbutton.Xaml = string.Format("&lt;Button&gt;{0}&lt;/Button&gt;", buttontext.Text);
}
&lt;/script&gt;
</code></pre>

<xic:XamlImage ID="dynamicbutton" runat="server" ImageUrl="~/XamlImageConverter.Demo/Images/XamlImage.png" >
<Button>I'm a Button</Button>
</xic:XamlImage>
<script runat="server">
protected void Update(object sender, EventArgs e) {
var dynamicbutton = (XamlImage)Page.FindControl("dynamicbutton");
dynamicbutton.Xaml = string.Format("<Button>{0}</Button>", buttontext.Text);
}
</script>
</div>
</form>
</body>
</html>
Loading

0 comments on commit eae654a

Please sign in to comment.