diff --git a/PCK-Studio/Extensions/ImageExtensions.cs b/PCK-Studio/Extensions/ImageExtensions.cs
index c40fa3fe..79ca51c9 100644
--- a/PCK-Studio/Extensions/ImageExtensions.cs
+++ b/PCK-Studio/Extensions/ImageExtensions.cs
@@ -9,47 +9,8 @@ using System.Linq;
namespace PckStudio.Extensions
{
- internal enum ImageLayoutDirection
- {
- Horizontal,
- Vertical
- }
-
internal static class ImageExtensions
{
- private struct ImageSection
- {
- public readonly Size Size;
- public readonly Point Point;
- public readonly Rectangle Area;
-
- internal ImageSection(Size sectionSize, int index, ImageLayoutDirection layoutDirection)
- {
- switch(layoutDirection)
- {
- case ImageLayoutDirection.Horizontal:
- {
- Size = new Size(sectionSize.Height, sectionSize.Height);
- Point = new Point(index * sectionSize.Height, 0);
- }
- break;
-
- case ImageLayoutDirection.Vertical:
- {
- Size = new Size(sectionSize.Width, sectionSize.Width);
- Point = new Point(0, index * sectionSize.Width);
- }
- break;
-
- default:
- Size = Size.Empty;
- Point = new Point(-1, -1);
- break;
- }
- Area = new Rectangle(Point, Size);
- }
- }
-
internal static Image GetArea(this Image source, Rectangle area)
{
Image tileImage = new Bitmap(area.Width, area.Height);
diff --git a/PCK-Studio/Extensions/ImageLayoutDirection.cs b/PCK-Studio/Extensions/ImageLayoutDirection.cs
new file mode 100644
index 00000000..7cfc23eb
--- /dev/null
+++ b/PCK-Studio/Extensions/ImageLayoutDirection.cs
@@ -0,0 +1,8 @@
+namespace PckStudio.Extensions
+{
+ internal enum ImageLayoutDirection
+ {
+ Horizontal,
+ Vertical
+ }
+}
diff --git a/PCK-Studio/Extensions/ImageSection.cs b/PCK-Studio/Extensions/ImageSection.cs
new file mode 100644
index 00000000..b6e8fa26
--- /dev/null
+++ b/PCK-Studio/Extensions/ImageSection.cs
@@ -0,0 +1,37 @@
+using System.Drawing;
+
+namespace PckStudio.Extensions
+{
+ struct ImageSection
+ {
+ public readonly Size Size;
+ public readonly Point Point;
+ public readonly Rectangle Area;
+
+ internal ImageSection(Size sectionSize, int index, ImageLayoutDirection layoutDirection)
+ {
+ switch(layoutDirection)
+ {
+ case ImageLayoutDirection.Horizontal:
+ {
+ Size = new Size(sectionSize.Height, sectionSize.Height);
+ Point = new Point(index * sectionSize.Height, 0);
+ }
+ break;
+
+ case ImageLayoutDirection.Vertical:
+ {
+ Size = new Size(sectionSize.Width, sectionSize.Width);
+ Point = new Point(0, index * sectionSize.Width);
+ }
+ break;
+
+ default:
+ Size = Size.Empty;
+ Point = new Point(-1, -1);
+ break;
+ }
+ Area = new Rectangle(Point, Size);
+ }
+ }
+}
diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj
index 50cc2cb4..27f0f8c6 100644
--- a/PCK-Studio/PckStudio.csproj
+++ b/PCK-Studio/PckStudio.csproj
@@ -167,6 +167,11 @@
+
+ Component
+
+
+
@@ -462,9 +467,6 @@
TextureConverterUtility.cs
-
- Component
-