Use Resize function in CoverLoader

Add possible multithreading
This commit is contained in:
Flamefire committed 2014-09-25 12:55:00 +02:00
1 parent 879176a87f
commit bf7eec4233
2 files changed
+97 -70

No files matched your search

+27
View File
@@ -66,6 +66,23 @@ namespace VocaluxeLib
public float Z;
public float Rotation; //0..360°
public float Right
{
get { return X + W; }
}
public float Bottom
{
get { return Y + H; }
}
public Size SizeI
{
get { return new Size((int)W, (int)H); }
}
public SizeF Size
{
get { return new SizeF(W, H); }
}
public SRectF(float x, float y, float w, float h, float z)
{
X = x;
@@ -85,6 +102,16 @@ namespace VocaluxeLib
Z = rect.Z;
Rotation = 0f;
}
public SRectF(Rectangle rect)
{
X = rect.X;
Y = rect.Y;
W = rect.Width;
H = rect.Height;
Z = 0;
Rotation = 0;
}
}
public struct SPoint3F