CroppedImage.cs 506 B

12345678910111213141516171819202122232425
  1. using System.Drawing;
  2. namespace NTERA.EmuEra.Game.EraEmu.Content
  3. {
  4. public class CroppedImage
  5. {
  6. public readonly string Name;
  7. public bool Enabled = false;
  8. public CroppedImage(string name, Bitmap image, Rectangle rect, bool noresize)
  9. {
  10. Name = name;
  11. Bitmap = image;
  12. Rectangle = rect;
  13. if (rect.Width <= 0 || rect.Height <= 0)
  14. Enabled = false;
  15. NoResize = noresize;
  16. }
  17. public readonly Bitmap Bitmap;
  18. public readonly Rectangle Rectangle;
  19. public readonly bool NoResize;
  20. }
  21. }