Browse Source

Rename to Core

Former-commit-id: c18f0149c93be6a2b8f196bd9265d293071f303b
Former-commit-id: ec96e4fa102a05b541bee1dc6be583ad9676a664
Former-commit-id: af407d177b01792436a266deecb16925f1c22981
pull/1/head
James Jackson-South 10 years ago
parent
commit
f2d1c8ad5d
  1. 6
      ImageProcessorCore.sln
  2. 0
      ImageProcessorCore.sln.DotSettings
  3. 10
      README.md
  4. 20
      appveyor.yml
  5. 1
      build/appveyor-project-version-patch.js
  6. 13
      src/ImageProcessor/stylecop.json
  7. 2
      src/ImageProcessorCore/Colors/Color.cs
  8. 2
      src/ImageProcessorCore/Colors/ColorDefinitions.cs
  9. 2
      src/ImageProcessorCore/Colors/ColorTransforms.cs
  10. 2
      src/ImageProcessorCore/Colors/ColorspaceTransforms.cs
  11. 2
      src/ImageProcessorCore/Colors/Colorspaces/Bgra32.cs
  12. 2
      src/ImageProcessorCore/Colors/Colorspaces/CieLab.cs
  13. 2
      src/ImageProcessorCore/Colors/Colorspaces/CieXyz.cs
  14. 2
      src/ImageProcessorCore/Colors/Colorspaces/Cmyk.cs
  15. 2
      src/ImageProcessorCore/Colors/Colorspaces/Hsl.cs
  16. 2
      src/ImageProcessorCore/Colors/Colorspaces/Hsv.cs
  17. 2
      src/ImageProcessorCore/Colors/Colorspaces/YCbCr.cs
  18. 2
      src/ImageProcessorCore/Colors/IAlmostEquatable.cs
  19. 2
      src/ImageProcessorCore/Colors/RgbaComponent.cs
  20. 2
      src/ImageProcessorCore/Common/Exceptions/ImageFormatException.cs
  21. 2
      src/ImageProcessorCore/Common/Exceptions/ImageProcessingException.cs
  22. 2
      src/ImageProcessorCore/Common/Extensions/ByteExtensions.cs
  23. 2
      src/ImageProcessorCore/Common/Extensions/ComparableExtensions.cs
  24. 2
      src/ImageProcessorCore/Common/Extensions/EnumerableExtensions.cs
  25. 4
      src/ImageProcessorCore/Common/Helpers/Guard.cs
  26. 2
      src/ImageProcessorCore/Common/Helpers/ImageMaths.cs
  27. 6
      src/ImageProcessorCore/Filters/Alpha.cs
  28. 4
      src/ImageProcessorCore/Filters/BackgroundColor.cs
  29. 6
      src/ImageProcessorCore/Filters/Binarization/Threshold.cs
  30. 4
      src/ImageProcessorCore/Filters/Blend.cs
  31. 6
      src/ImageProcessorCore/Filters/Brightness.cs
  32. 2
      src/ImageProcessorCore/Filters/ColorMatrix/BlackWhite.cs
  33. 4
      src/ImageProcessorCore/Filters/ColorMatrix/ColorMatrixFilter.cs
  34. 2
      src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleBt601.cs
  35. 2
      src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleBt709.cs
  36. 2
      src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleMode.cs
  37. 2
      src/ImageProcessorCore/Filters/ColorMatrix/Hue.cs
  38. 4
      src/ImageProcessorCore/Filters/ColorMatrix/IColorMatrixFilter.cs
  39. 2
      src/ImageProcessorCore/Filters/ColorMatrix/Kodachrome.cs
  40. 2
      src/ImageProcessorCore/Filters/ColorMatrix/Lomograph.cs
  41. 2
      src/ImageProcessorCore/Filters/ColorMatrix/Polaroid.cs
  42. 4
      src/ImageProcessorCore/Filters/ColorMatrix/Saturation.cs
  43. 2
      src/ImageProcessorCore/Filters/ColorMatrix/Sepia.cs
  44. 6
      src/ImageProcessorCore/Filters/Contrast.cs
  45. 2
      src/ImageProcessorCore/Filters/Convolution/BoxBlur.cs
  46. 4
      src/ImageProcessorCore/Filters/Convolution/Convolution2DFilter.cs
  47. 4
      src/ImageProcessorCore/Filters/Convolution/Convolution2PassFilter.cs
  48. 4
      src/ImageProcessorCore/Filters/Convolution/ConvolutionFilter.cs
  49. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/EdgeDetector2DFilter.cs
  50. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/EdgeDetectorFilter.cs
  51. 4
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/IEdgeDetectorFilter.cs
  52. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Kayyali.cs
  53. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Kirsch.cs
  54. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Laplacian3X3.cs
  55. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Laplacian5X5.cs
  56. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/LaplacianOfGaussian.cs
  57. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Prewitt.cs
  58. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/RobertsCross.cs
  59. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Scharr.cs
  60. 2
      src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Sobel.cs
  61. 2
      src/ImageProcessorCore/Filters/Convolution/GuassianBlur.cs
  62. 2
      src/ImageProcessorCore/Filters/Convolution/GuassianSharpen.cs
  63. 4
      src/ImageProcessorCore/Filters/Glow.cs
  64. 6
      src/ImageProcessorCore/Filters/ImageFilterExtensions.cs
  65. 6
      src/ImageProcessorCore/Filters/Invert.cs
  66. 6
      src/ImageProcessorCore/Filters/Pixelate.cs
  67. 4
      src/ImageProcessorCore/Filters/Vignette.cs
  68. 2
      src/ImageProcessorCore/Formats/Bmp/BmpCompression.cs
  69. 2
      src/ImageProcessorCore/Formats/Bmp/BmpDecoder.cs
  70. 2
      src/ImageProcessorCore/Formats/Bmp/BmpDecoderCore.cs
  71. 2
      src/ImageProcessorCore/Formats/Bmp/BmpEncoder.cs
  72. 2
      src/ImageProcessorCore/Formats/Bmp/BmpFileHeader.cs
  73. 2
      src/ImageProcessorCore/Formats/Bmp/BmpFormat.cs
  74. 2
      src/ImageProcessorCore/Formats/Bmp/BmpInfoHeader.cs
  75. 0
      src/ImageProcessorCore/Formats/Bmp/README.md
  76. 2
      src/ImageProcessorCore/Formats/Gif/BitEncoder.cs
  77. 2
      src/ImageProcessorCore/Formats/Gif/DisposalMethod.cs
  78. 2
      src/ImageProcessorCore/Formats/Gif/GifConstants.cs
  79. 2
      src/ImageProcessorCore/Formats/Gif/GifDecoder.cs
  80. 2
      src/ImageProcessorCore/Formats/Gif/GifDecoderCore.cs
  81. 2
      src/ImageProcessorCore/Formats/Gif/GifEncoder.cs
  82. 2
      src/ImageProcessorCore/Formats/Gif/GifFormat.cs
  83. 2
      src/ImageProcessorCore/Formats/Gif/LzwDecoder.cs
  84. 2
      src/ImageProcessorCore/Formats/Gif/LzwEncoder.cs
  85. 2
      src/ImageProcessorCore/Formats/Gif/Quantizer/IQuantizer.cs
  86. 2
      src/ImageProcessorCore/Formats/Gif/Quantizer/OctreeQuantizer.cs
  87. 2
      src/ImageProcessorCore/Formats/Gif/Quantizer/QuantizedImage.cs
  88. 2
      src/ImageProcessorCore/Formats/Gif/Quantizer/Quantizer.cs
  89. 0
      src/ImageProcessorCore/Formats/Gif/README.md
  90. 2
      src/ImageProcessorCore/Formats/Gif/Sections/GifGraphicsControlExtension.cs
  91. 2
      src/ImageProcessorCore/Formats/Gif/Sections/GifImageDescriptor.cs
  92. 2
      src/ImageProcessorCore/Formats/Gif/Sections/GifLogicalScreenDescriptor.cs
  93. 2
      src/ImageProcessorCore/Formats/IImageDecoder.cs
  94. 2
      src/ImageProcessorCore/Formats/IImageEncoder.cs
  95. 2
      src/ImageProcessorCore/Formats/IImageFormat.cs
  96. 2
      src/ImageProcessorCore/Formats/Jpg/JpegDecoder.cs
  97. 2
      src/ImageProcessorCore/Formats/Jpg/JpegEncoder.cs
  98. 2
      src/ImageProcessorCore/Formats/Jpg/JpegFormat.cs
  99. 2
      src/ImageProcessorCore/Formats/Jpg/LibJpeg/BitStream.cs
  100. 0
      src/ImageProcessorCore/Formats/Jpg/LibJpeg/BitmapDestination.cs

6
ImageProcessor.sln → ImageProcessorCore.sln

@ -1,11 +1,11 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.23107.0 VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ImageProcessor", "src\ImageProcessor\ImageProcessor.xproj", "{2AA31A1F-142C-43F4-8687-09ABCA4B3A26}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ImageProcessorCore", "src\ImageProcessorCore\ImageProcessorCore.xproj", "{2AA31A1F-142C-43F4-8687-09ABCA4B3A26}"
EndProject EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ImageProcessor.Tests", "tests\ImageProcessor.Tests\ImageProcessor.Tests.xproj", "{F836E8E6-B4D9-4208-8346-140C74678B91}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ImageProcessorCore.Tests", "tests\ImageProcessorCore.Tests\ImageProcessorCore.Tests.xproj", "{F836E8E6-B4D9-4208-8346-140C74678B91}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

0
ImageProcessor.sln.DotSettings → ImageProcessorCore.sln.DotSettings

10
README.md

@ -1,6 +1,6 @@
# ImageProcessor # ImageProcessor
**This branch contains the new cross platform version of ImageProcessor**. ## This branch contains the new cross platform version ImageProcessorCore.
This is a complete rewrite from the ground up to allow the processing of images without the use of `System.Drawing` using a cross-platform class library. It's still in early stages but progress has been pretty quick. This is a complete rewrite from the ground up to allow the processing of images without the use of `System.Drawing` using a cross-platform class library. It's still in early stages but progress has been pretty quick.
@ -9,11 +9,7 @@ This is a complete rewrite from the ground up to allow the processing of images
###Why am I writing this? ###Why am I writing this?
With NETCore there is currently no version of `System.Drawing` to allow continued progress of the existing ImageProcessor library. Progress developing a cross-platform update are restricted to the [CoreFXLab repo](https://github.com/dotnet/corefxlab/tree/master/src/System.Drawing.Graphics) where progress seems to be very slow. With NETCore there is currently no version of `System.Drawing` to allow continued progress of the existing ImageProcessor library.
###Is this wise?
Honestly... I don't know. I could be writing code that may be suddenly obsolete. There has been little [feedback](https://github.com/dotnet/corefxlab/issues/86#issuecomment-139930600) on questions I've asked but it's a nice learning process if anything and I will definitely be releasing the code for consumption.
### Installation ### Installation
At present the code is pre-release but when ready it will be available on [Nuget](http://www.nuget.org). At present the code is pre-release but when ready it will be available on [Nuget](http://www.nuget.org).
@ -130,7 +126,7 @@ git clone https://github.com/JimBobSquarePants/ImageProcessor
With this version the API will change dramatically. Without the constraints of `System.Drawing` I have been able to develop something much more flexible, easier to code against, and much, much less prone to memory leaks. Gone are using image classes which implements `IDisposable`, Gone are system wide proces locks with Images and processors thread safe usable in parallel processing utilizing all the availables cores. With this version the API will change dramatically. Without the constraints of `System.Drawing` I have been able to develop something much more flexible, easier to code against, and much, much less prone to memory leaks. Gone are using image classes which implements `IDisposable`, Gone are system wide proces locks with Images and processors thread safe usable in parallel processing utilizing all the availables cores.
Image methods are also fluent which allow chaining much like the `ImageFactory` class in V2 and below. Image methods are also fluent which allow chaining much like the `ImageFactory` class in the Framework version.
Here's an example of the code required to resize an image using the default Robidoux resampler then turn the colors into their greyscale equivalent using the BT709 standard matrix. Here's an example of the code required to resize an image using the default Robidoux resampler then turn the colors into their greyscale equivalent using the BT709 standard matrix.

20
appveyor.yml

@ -1,4 +1,4 @@
version: v3.0.0.{build} version: v1.0.0.{build}
os: Visual Studio 2015 os: Visual Studio 2015
install: install:
@ -8,8 +8,8 @@ install:
assembly_info: assembly_info:
patch: true patch: true
file: '**\AssemblyInfo.*' file: '**\AssemblyInfo.*'
assembly_version: '3.0.0.{build}' assembly_version: '1.0.0.{build}'
assembly_file_version: '3.0.0.{build}' assembly_file_version: '1.0.0.{build}'
before_build: before_build:
- cmd: >- - cmd: >-
@ -21,9 +21,9 @@ before_build:
dnvm list dnvm list
dnu restore src\ImageProcessor dnu restore src\ImageProcessorCore
dnu restore tests\ImageProcessor.Tests dnu restore tests\ImageProcessorCore.Tests
cd build cd build
@ -35,21 +35,21 @@ before_build:
build_script: build_script:
- cmd: >- - cmd: >-
dnu build src\ImageProcessor dnu build src\ImageProcessorCore
dnu build tests\ImageProcessor.Tests dnu build tests\ImageProcessorCore.Tests
dnu pack src\ImageProcessor --configuration Release --out "artifacts\bin\ImageProcessor" dnu pack src\ImageProcessorCore --configuration Release --out "artifacts\bin\ImageProcessorCore"
test_script: test_script:
- cmd: >- - cmd: >-
dnvm use 1.0.0-rc1-update1 -r coreclr -a x64 dnvm use 1.0.0-rc1-update1 -r coreclr -a x64
cd tests/ImageProcessor.Tests cd tests/ImageProcessorCore.Tests
dnx test dnx test
artifacts: artifacts:
- path: artifacts\bin\ImageProcessor\**\*.nupkg - path: artifacts\bin\ImageProcessorCore\**\*.nupkg
deploy: deploy:
# MyGet Deployment for builds & releases # MyGet Deployment for builds & releases

1
build/appveyor-project-version-patch.js

@ -3,7 +3,6 @@ var semver = require('semver');
var file = '../src/imageprocessor/project.json'; var file = '../src/imageprocessor/project.json';
var buildVersion = process.env.APPVEYOR_BUILD_VERSION.substring(1); var buildVersion = process.env.APPVEYOR_BUILD_VERSION.substring(1);
//var buildVersion = '3.0.0.23';
var findPoint = buildVersion.lastIndexOf("."); var findPoint = buildVersion.lastIndexOf(".");
var basePackageVer = buildVersion.substring(0, findPoint); var basePackageVer = buildVersion.substring(0, findPoint);

13
src/ImageProcessor/stylecop.json

@ -1,13 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "James Jackson-South",
"copyrightText": "Copyright (c) {companyName} and contributors.\nLicensed under the {licenseName}.",
"variables": {
"licenseName": "Apache License, Version 2.0"
},
"documentPrivateFields": true
}
}
}

2
src/ImageProcessor/Colors/Color.cs → src/ImageProcessorCore/Colors/Color.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/ColorDefinitions.cs → src/ImageProcessorCore/Colors/ColorDefinitions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
/// <summary> /// <summary>
/// Represents a four-component color using red, green, blue, and alpha data. /// Represents a four-component color using red, green, blue, and alpha data.

2
src/ImageProcessor/Colors/ColorTransforms.cs → src/ImageProcessorCore/Colors/ColorTransforms.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Colors/ColorspaceTransforms.cs → src/ImageProcessorCore/Colors/ColorspaceTransforms.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Colors/Colorspaces/Bgra32.cs → src/ImageProcessorCore/Colors/Colorspaces/Bgra32.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/CieLab.cs → src/ImageProcessorCore/Colors/Colorspaces/CieLab.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/CieXyz.cs → src/ImageProcessorCore/Colors/Colorspaces/CieXyz.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/Cmyk.cs → src/ImageProcessorCore/Colors/Colorspaces/Cmyk.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/Hsl.cs → src/ImageProcessorCore/Colors/Colorspaces/Hsl.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/Hsv.cs → src/ImageProcessorCore/Colors/Colorspaces/Hsv.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/Colorspaces/YCbCr.cs → src/ImageProcessorCore/Colors/Colorspaces/YCbCr.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.ComponentModel; using System.ComponentModel;

2
src/ImageProcessor/Colors/IAlmostEquatable.cs → src/ImageProcessorCore/Colors/IAlmostEquatable.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Colors/RgbaComponent.cs → src/ImageProcessorCore/Colors/RgbaComponent.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
/// <summary> /// <summary>
/// Enumerates the RGBA (red, green, blue, alpha) color components. /// Enumerates the RGBA (red, green, blue, alpha) color components.

2
src/ImageProcessor/Common/Exceptions/ImageFormatException.cs → src/ImageProcessorCore/Common/Exceptions/ImageFormatException.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Common/Exceptions/ImageProcessingException.cs → src/ImageProcessorCore/Common/Exceptions/ImageProcessingException.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Common/Extensions/ByteExtensions.cs → src/ImageProcessorCore/Common/Extensions/ByteExtensions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Common/Extensions/ComparableExtensions.cs → src/ImageProcessorCore/Common/Extensions/ComparableExtensions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;

2
src/ImageProcessor/Common/Extensions/EnumerableExtensions.cs → src/ImageProcessorCore/Common/Extensions/EnumerableExtensions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

4
src/ImageProcessor/Common/Helpers/Guard.cs → src/ImageProcessorCore/Common/Helpers/Guard.cs

@ -10,8 +10,8 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("ImageProcessor.Tests")] [assembly: InternalsVisibleTo("ImageProcessorCore.Tests")]
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.Diagnostics; using System.Diagnostics;

2
src/ImageProcessor/Common/Helpers/ImageMaths.cs → src/ImageProcessorCore/Common/Helpers/ImageMaths.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor namespace ImageProcessorCore
{ {
using System; using System;
using System.Numerics; using System.Numerics;

6
src/ImageProcessor/Filters/Alpha.cs → src/ImageProcessorCore/Filters/Alpha.cs

@ -3,16 +3,16 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to change the Alpha of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to change the Alpha of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Alpha : ParallelImageProcessor public class Alpha : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Alpha"/> class. /// Initializes a new instance of the <see cref="Alpha"/> class.

4
src/ImageProcessor/Filters/BackgroundColor.cs → src/ImageProcessorCore/Filters/BackgroundColor.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -11,7 +11,7 @@ namespace ImageProcessor.Filters
/// <summary> /// <summary>
/// Sets the background color of the image. /// Sets the background color of the image.
/// </summary> /// </summary>
public class BackgroundColor : ParallelImageProcessor public class BackgroundColor : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// The epsilon for comparing floating point numbers. /// The epsilon for comparing floating point numbers.

6
src/ImageProcessor/Filters/Binarization/Threshold.cs → src/ImageProcessorCore/Filters/Binarization/Threshold.cs

@ -3,18 +3,18 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to perform binary threshold filtering against an /// An <see cref="IImageProcessorCore"/> to perform binary threshold filtering against an
/// <see cref="Image"/>. The image will be converted to greyscale before thresholding /// <see cref="Image"/>. The image will be converted to greyscale before thresholding
/// occurs. /// occurs.
/// </summary> /// </summary>
public class Threshold : ParallelImageProcessor public class Threshold : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Threshold"/> class. /// Initializes a new instance of the <see cref="Threshold"/> class.

4
src/ImageProcessor/Filters/Blend.cs → src/ImageProcessorCore/Filters/Blend.cs

@ -3,14 +3,14 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// Combines two images together by blending the pixels. /// Combines two images together by blending the pixels.
/// </summary> /// </summary>
public class Blend : ParallelImageProcessor public class Blend : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// The image to blend. /// The image to blend.

6
src/ImageProcessor/Filters/Brightness.cs → src/ImageProcessorCore/Filters/Brightness.cs

@ -3,16 +3,16 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to change the brightness of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to change the brightness of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Brightness : ParallelImageProcessor public class Brightness : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Brightness"/> class. /// Initializes a new instance of the <see cref="Brightness"/> class.

2
src/ImageProcessor/Filters/ColorMatrix/BlackWhite.cs → src/ImageProcessorCore/Filters/ColorMatrix/BlackWhite.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

4
src/ImageProcessor/Filters/ColorMatrix/ColorMatrixFilter.cs → src/ImageProcessorCore/Filters/ColorMatrix/ColorMatrixFilter.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -11,7 +11,7 @@ namespace ImageProcessor.Filters
/// <summary> /// <summary>
/// The color matrix filter. /// The color matrix filter.
/// </summary> /// </summary>
public abstract class ColorMatrixFilter : ParallelImageProcessor, IColorMatrixFilter public abstract class ColorMatrixFilter : ParallelImageProcessorCore, IColorMatrixFilter
{ {
/// <inheritdoc/> /// <inheritdoc/>
public abstract Matrix4x4 Matrix { get; } public abstract Matrix4x4 Matrix { get; }

2
src/ImageProcessor/Filters/ColorMatrix/GreyscaleBt601.cs → src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleBt601.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

2
src/ImageProcessor/Filters/ColorMatrix/GreyscaleBt709.cs → src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleBt709.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

2
src/ImageProcessor/Filters/ColorMatrix/GreyscaleMode.cs → src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleMode.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Provides enumeration over the various greyscale methods available. /// Provides enumeration over the various greyscale methods available.

2
src/ImageProcessor/Filters/ColorMatrix/Hue.cs → src/ImageProcessorCore/Filters/ColorMatrix/Hue.cs

@ -1,4 +1,4 @@
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;

4
src/ImageProcessor/Filters/ColorMatrix/IColorMatrixFilter.cs → src/ImageProcessorCore/Filters/ColorMatrix/IColorMatrixFilter.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;
@ -11,7 +11,7 @@ namespace ImageProcessor.Filters
/// Encapsulates properties and methods for creating processors that utilize a matrix to /// Encapsulates properties and methods for creating processors that utilize a matrix to
/// alter the image pixels. /// alter the image pixels.
/// </summary> /// </summary>
public interface IColorMatrixFilter : IImageProcessor public interface IColorMatrixFilter : IImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets the <see cref="Matrix4x4"/> used to alter the image. /// Gets the <see cref="Matrix4x4"/> used to alter the image.

2
src/ImageProcessor/Filters/ColorMatrix/Kodachrome.cs → src/ImageProcessorCore/Filters/ColorMatrix/Kodachrome.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

2
src/ImageProcessor/Filters/ColorMatrix/Lomograph.cs → src/ImageProcessorCore/Filters/ColorMatrix/Lomograph.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

2
src/ImageProcessor/Filters/ColorMatrix/Polaroid.cs → src/ImageProcessorCore/Filters/ColorMatrix/Polaroid.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

4
src/ImageProcessor/Filters/ColorMatrix/Saturation.cs → src/ImageProcessorCore/Filters/ColorMatrix/Saturation.cs

@ -3,13 +3,13 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to change the saturation of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to change the saturation of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Saturation : ColorMatrixFilter public class Saturation : ColorMatrixFilter
{ {

2
src/ImageProcessor/Filters/ColorMatrix/Sepia.cs → src/ImageProcessorCore/Filters/ColorMatrix/Sepia.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;

6
src/ImageProcessor/Filters/Contrast.cs → src/ImageProcessorCore/Filters/Contrast.cs

@ -3,16 +3,16 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to change the contrast of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to change the contrast of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Contrast : ParallelImageProcessor public class Contrast : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Contrast"/> class. /// Initializes a new instance of the <see cref="Contrast"/> class.

2
src/ImageProcessor/Filters/Convolution/BoxBlur.cs → src/ImageProcessorCore/Filters/Convolution/BoxBlur.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Applies a Box blur filter to the image. /// Applies a Box blur filter to the image.

4
src/ImageProcessor/Filters/Convolution/Convolution2DFilter.cs → src/ImageProcessorCore/Filters/Convolution/Convolution2DFilter.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -11,7 +11,7 @@ namespace ImageProcessor.Filters
/// <summary> /// <summary>
/// Defines a filter that uses two one-dimensional matrices to perform convolution against an image. /// Defines a filter that uses two one-dimensional matrices to perform convolution against an image.
/// </summary> /// </summary>
public abstract class Convolution2DFilter : ParallelImageProcessor public abstract class Convolution2DFilter : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets the horizontal gradient operator. /// Gets the horizontal gradient operator.

4
src/ImageProcessor/Filters/Convolution/Convolution2PassFilter.cs → src/ImageProcessorCore/Filters/Convolution/Convolution2PassFilter.cs

@ -3,14 +3,14 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// Defines a filter that uses two one-dimensional matrices to perform two-pass convolution against an image. /// Defines a filter that uses two one-dimensional matrices to perform two-pass convolution against an image.
/// </summary> /// </summary>
public abstract class Convolution2PassFilter : ParallelImageProcessor public abstract class Convolution2PassFilter : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets the horizontal gradient operator. /// Gets the horizontal gradient operator.

4
src/ImageProcessor/Filters/Convolution/ConvolutionFilter.cs → src/ImageProcessorCore/Filters/Convolution/ConvolutionFilter.cs

@ -3,14 +3,14 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// Defines a filter that uses a 2 dimensional matrix to perform convolution against an image. /// Defines a filter that uses a 2 dimensional matrix to perform convolution against an image.
/// </summary> /// </summary>
public abstract class ConvolutionFilter : ParallelImageProcessor public abstract class ConvolutionFilter : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets the 2d gradient operator. /// Gets the 2d gradient operator.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/EdgeDetector2DFilter.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/EdgeDetector2DFilter.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Defines a filter that detects edges within an image using two /// Defines a filter that detects edges within an image using two

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/EdgeDetectorFilter.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/EdgeDetectorFilter.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Defines a filter that detects edges within an image using a single /// Defines a filter that detects edges within an image using a single

4
src/ImageProcessor/Filters/Convolution/EdgeDetection/IEdgeDetectorFilter.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/IEdgeDetectorFilter.cs

@ -3,12 +3,12 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Provides properties and methods allowing the detection of edges within an image. /// Provides properties and methods allowing the detection of edges within an image.
/// </summary> /// </summary>
public interface IEdgeDetectorFilter : IImageProcessor public interface IEdgeDetectorFilter : IImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether to convert the /// Gets or sets a value indicating whether to convert the

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Kayyali.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Kayyali.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Kayyali operator filter. /// The Kayyali operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Kirsch.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Kirsch.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Kirsch operator filter. /// The Kirsch operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Laplacian3X3.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Laplacian3X3.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Laplacian 3 x 3 operator filter. /// The Laplacian 3 x 3 operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Laplacian5X5.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Laplacian5X5.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Laplacian 5 x 5 operator filter. /// The Laplacian 5 x 5 operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/LaplacianOfGaussian.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/LaplacianOfGaussian.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Laplacian of Gaussian operator filter. /// The Laplacian of Gaussian operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Prewitt.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Prewitt.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Prewitt operator filter. /// The Prewitt operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/RobertsCross.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/RobertsCross.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Roberts Cross operator filter. /// The Roberts Cross operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Scharr.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Scharr.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Scharr operator filter. /// The Scharr operator filter.

2
src/ImageProcessor/Filters/Convolution/EdgeDetection/Sobel.cs → src/ImageProcessorCore/Filters/Convolution/EdgeDetection/Sobel.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// The Sobel operator filter. /// The Sobel operator filter.

2
src/ImageProcessor/Filters/Convolution/GuassianBlur.cs → src/ImageProcessorCore/Filters/Convolution/GuassianBlur.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;

2
src/ImageProcessor/Filters/Convolution/GuassianSharpen.cs → src/ImageProcessorCore/Filters/Convolution/GuassianSharpen.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;

4
src/ImageProcessor/Filters/Glow.cs → src/ImageProcessorCore/Filters/Glow.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
@ -12,7 +12,7 @@ namespace ImageProcessor.Filters
/// <summary> /// <summary>
/// Creates a glow effect on the image /// Creates a glow effect on the image
/// </summary> /// </summary>
public class Glow : ParallelImageProcessor public class Glow : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets or sets the vignette color to apply. /// Gets or sets the vignette color to apply.

6
src/ImageProcessor/Filters/ImageFilterExtensions.cs → src/ImageProcessorCore/Filters/ImageFilterExtensions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
/// <summary> /// <summary>
/// Extensions methods for <see cref="Image"/> to apply filters to the image. /// Extensions methods for <see cref="Image"/> to apply filters to the image.
@ -326,8 +326,8 @@ namespace ImageProcessor.Filters
/// <returns>The <see cref="Image"/>.</returns> /// <returns>The <see cref="Image"/>.</returns>
public static Image Greyscale(this Image source, Rectangle rectangle, GreyscaleMode mode = GreyscaleMode.Bt709, ProgressEventHandler progressHandler = null) public static Image Greyscale(this Image source, Rectangle rectangle, GreyscaleMode mode = GreyscaleMode.Bt709, ProgressEventHandler progressHandler = null)
{ {
IImageProcessor processor = mode == GreyscaleMode.Bt709 IImageProcessorCore processor = mode == GreyscaleMode.Bt709
? (IImageProcessor)new GreyscaleBt709() ? (IImageProcessorCore)new GreyscaleBt709()
: new GreyscaleBt601(); : new GreyscaleBt601();
processor.OnProgress += progressHandler; processor.OnProgress += progressHandler;

6
src/ImageProcessor/Filters/Invert.cs → src/ImageProcessorCore/Filters/Invert.cs

@ -3,15 +3,15 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to invert the colors of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to invert the colors of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Invert : ParallelImageProcessor public class Invert : ParallelImageProcessorCore
{ {
/// <inheritdoc/> /// <inheritdoc/>
protected override void Apply(ImageBase target, ImageBase source, Rectangle targetRectangle, Rectangle sourceRectangle, int startY, int endY) protected override void Apply(ImageBase target, ImageBase source, Rectangle targetRectangle, Rectangle sourceRectangle, int startY, int endY)

6
src/ImageProcessor/Filters/Pixelate.cs → src/ImageProcessorCore/Filters/Pixelate.cs

@ -3,16 +3,16 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor"/> to invert the colors of an <see cref="Image"/>. /// An <see cref="IImageProcessorCore"/> to invert the colors of an <see cref="Image"/>.
/// </summary> /// </summary>
public class Pixelate : ParallelImageProcessor public class Pixelate : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Pixelate"/> class. /// Initializes a new instance of the <see cref="Pixelate"/> class.

4
src/ImageProcessor/Filters/Vignette.cs → src/ImageProcessorCore/Filters/Vignette.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Filters namespace ImageProcessorCore.Filters
{ {
using System; using System;
using System.Numerics; using System.Numerics;
@ -12,7 +12,7 @@ namespace ImageProcessor.Filters
/// <summary> /// <summary>
/// Creates a vignette effect on the image /// Creates a vignette effect on the image
/// </summary> /// </summary>
public class Vignette : ParallelImageProcessor public class Vignette : ParallelImageProcessorCore
{ {
/// <summary> /// <summary>
/// Gets or sets the vignette color to apply. /// Gets or sets the vignette color to apply.

2
src/ImageProcessor/Formats/Bmp/BmpCompression.cs → src/ImageProcessorCore/Formats/Bmp/BmpCompression.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Defines how the compression type of the image data /// Defines how the compression type of the image data

2
src/ImageProcessor/Formats/Bmp/BmpDecoder.cs → src/ImageProcessorCore/Formats/Bmp/BmpDecoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Bmp/BmpDecoderCore.cs → src/ImageProcessorCore/Formats/Bmp/BmpDecoderCore.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Bmp/BmpEncoder.cs → src/ImageProcessorCore/Formats/Bmp/BmpEncoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Bmp/BmpFileHeader.cs → src/ImageProcessorCore/Formats/Bmp/BmpFileHeader.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Stores general information about the Bitmap file. /// Stores general information about the Bitmap file.

2
src/ImageProcessor/Formats/Bmp/BmpFormat.cs → src/ImageProcessorCore/Formats/Bmp/BmpFormat.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Encapsulates the means to encode and decode bitmap images. /// Encapsulates the means to encode and decode bitmap images.

2
src/ImageProcessor/Formats/Bmp/BmpInfoHeader.cs → src/ImageProcessorCore/Formats/Bmp/BmpInfoHeader.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors. // Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// This block of bytes tells the application detailed information /// This block of bytes tells the application detailed information

0
src/ImageProcessor/Formats/Bmp/README.md → src/ImageProcessorCore/Formats/Bmp/README.md

2
src/ImageProcessor/Formats/Gif/BitEncoder.cs → src/ImageProcessorCore/Formats/Gif/BitEncoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System.Collections.Generic; using System.Collections.Generic;

2
src/ImageProcessor/Formats/Gif/DisposalMethod.cs → src/ImageProcessorCore/Formats/Gif/DisposalMethod.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Provides enumeration for instructing the decoder what to do with the last image /// Provides enumeration for instructing the decoder what to do with the last image

2
src/ImageProcessor/Formats/Gif/GifConstants.cs → src/ImageProcessorCore/Formats/Gif/GifConstants.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Constants that define specific points within a gif. /// Constants that define specific points within a gif.

2
src/ImageProcessor/Formats/Gif/GifDecoder.cs → src/ImageProcessorCore/Formats/Gif/GifDecoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Gif/GifDecoderCore.cs → src/ImageProcessorCore/Formats/Gif/GifDecoderCore.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Gif/GifEncoder.cs → src/ImageProcessorCore/Formats/Gif/GifEncoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Gif/GifFormat.cs → src/ImageProcessorCore/Formats/Gif/GifFormat.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Encapsulates the means to encode and decode gif images. /// Encapsulates the means to encode and decode gif images.

2
src/ImageProcessor/Formats/Gif/LzwDecoder.cs → src/ImageProcessorCore/Formats/Gif/LzwDecoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Gif/LzwEncoder.cs → src/ImageProcessorCore/Formats/Gif/LzwEncoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

2
src/ImageProcessor/Formats/Gif/Quantizer/IQuantizer.cs → src/ImageProcessorCore/Formats/Gif/Quantizer/IQuantizer.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Provides methods for allowing quantization of images pixels. /// Provides methods for allowing quantization of images pixels.

2
src/ImageProcessor/Formats/Gif/Quantizer/OctreeQuantizer.cs → src/ImageProcessorCore/Formats/Gif/Quantizer/OctreeQuantizer.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

2
src/ImageProcessor/Formats/Gif/Quantizer/QuantizedImage.cs → src/ImageProcessorCore/Formats/Gif/Quantizer/QuantizedImage.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;

2
src/ImageProcessor/Formats/Gif/Quantizer/Quantizer.cs → src/ImageProcessorCore/Formats/Gif/Quantizer/Quantizer.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System.Collections.Generic; using System.Collections.Generic;

0
src/ImageProcessor/Formats/Gif/README.md → src/ImageProcessorCore/Formats/Gif/README.md

2
src/ImageProcessor/Formats/Gif/Sections/GifGraphicsControlExtension.cs → src/ImageProcessorCore/Formats/Gif/Sections/GifGraphicsControlExtension.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// The Graphic Control Extension contains parameters used when /// The Graphic Control Extension contains parameters used when

2
src/ImageProcessor/Formats/Gif/Sections/GifImageDescriptor.cs → src/ImageProcessorCore/Formats/Gif/Sections/GifImageDescriptor.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Each image in the Data Stream is composed of an Image Descriptor, /// Each image in the Data Stream is composed of an Image Descriptor,

2
src/ImageProcessor/Formats/Gif/Sections/GifLogicalScreenDescriptor.cs → src/ImageProcessorCore/Formats/Gif/Sections/GifLogicalScreenDescriptor.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// The Logical Screen Descriptor contains the parameters /// The Logical Screen Descriptor contains the parameters

2
src/ImageProcessor/Formats/IImageDecoder.cs → src/ImageProcessorCore/Formats/IImageDecoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/IImageEncoder.cs → src/ImageProcessorCore/Formats/IImageEncoder.cs

@ -8,7 +8,7 @@
// </summary> // </summary>
// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/IImageFormat.cs → src/ImageProcessorCore/Formats/IImageFormat.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Encapsulates a supported image format, providing means to encode and decode an image. /// Encapsulates a supported image format, providing means to encode and decode an image.

2
src/ImageProcessor/Formats/Jpg/JpegDecoder.cs → src/ImageProcessorCore/Formats/Jpg/JpegDecoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Jpg/JpegEncoder.cs → src/ImageProcessorCore/Formats/Jpg/JpegEncoder.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

2
src/ImageProcessor/Formats/Jpg/JpegFormat.cs → src/ImageProcessorCore/Formats/Jpg/JpegFormat.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
/// <summary> /// <summary>
/// Encapsulates the means to encode and decode jpeg images. /// Encapsulates the means to encode and decode jpeg images.

2
src/ImageProcessor/Formats/Jpg/LibJpeg/BitStream.cs → src/ImageProcessorCore/Formats/Jpg/LibJpeg/BitStream.cs

@ -8,7 +8,7 @@
// </summary> // </summary>
// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.Formats namespace ImageProcessorCore.Formats
{ {
using System; using System;
using System.IO; using System.IO;

0
src/ImageProcessor/Formats/Jpg/LibJpeg/BitmapDestination.cs → src/ImageProcessorCore/Formats/Jpg/LibJpeg/BitmapDestination.cs

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save