mirror of https://github.com/SixLabors/ImageSharp
15 changed files with 310 additions and 58 deletions
@ -0,0 +1,43 @@ |
|||||
|
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
// <copyright file="AnchorPosition.cs" company="James South">
|
||||
|
// Copyright (c) James South.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
// </copyright>
|
||||
|
// <summary>
|
||||
|
// Enumerated anchor positions to apply to resized images.
|
||||
|
// </summary>
|
||||
|
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace ImageProcessor.Imaging |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Enumerated anchor positions to apply to resized images.
|
||||
|
/// </summary>
|
||||
|
public enum AnchorPosition |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Anchors the position of the image to the top of it's bounding container.
|
||||
|
/// </summary>
|
||||
|
Top, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Anchors the position of the image to the center of it's bounding container.
|
||||
|
/// </summary>
|
||||
|
Center, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Anchors the position of the image to the bottom of it's bounding container.
|
||||
|
/// </summary>
|
||||
|
Bottom, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Anchors the position of the image to the left of it's bounding container.
|
||||
|
/// </summary>
|
||||
|
Left, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Anchors the position of the image to the right of it's bounding container.
|
||||
|
/// </summary>
|
||||
|
Right |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,3 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<cache virtualPath="~/app_data/cache" maxDays="56"/> |
||||
|
|
||||
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<processing> |
||||
|
<plugins> |
||||
|
<plugin name="Resize"> |
||||
|
<settings> |
||||
|
<setting key="MaxWidth" value="3000"/> |
||||
|
<setting key="MaxHeight" value="3000"/> |
||||
|
</settings> |
||||
|
</plugin> |
||||
|
<plugin name="Constrain"> |
||||
|
<settings> |
||||
|
<setting key="MaxWidth" value="3000"/> |
||||
|
<setting key="MaxHeight" value="3000"/> |
||||
|
</settings> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</processing> |
||||
|
|
||||
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<security allowRemoteDownloads="true" timeout="300000" maxBytes="524288" remotePrefix="/remote.axd"> |
||||
|
<whiteList> |
||||
|
<add url="http://images.mymovies.net"/> |
||||
|
<add url="http://www.theworldeffect.com" /> |
||||
|
<add url="http://maps.googleapis.com" extensionLess="true" imageFormat="png"/> |
||||
|
</whiteList> |
||||
|
</security> |
||||
Loading…
Reference in new issue