Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PixelOperation.cs « PixelEditor « UVtools.Core - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5173ba28e186ef09d0dd4769c1b050844c1d04b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 *                     GNU AFFERO GENERAL PUBLIC LICENSE
 *                       Version 3, 19 November 2007
 *  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 *  Everyone is permitted to copy and distribute verbatim copies
 *  of this license document, but changing it is not allowed.
 */
using System.Drawing;

namespace UVtools.Core.PixelEditor
{
    public class PixelOperation
    {
        public enum PixelOperationType : byte
        {
            Drawing,
            Supports,
            DrainHole,
        }

        public PixelOperationType OperationType { get; }
        public uint LayerIndex { get; }

        public Point Location { get; }

        public Size Size { get; private protected set; } = Size.Empty;


        public PixelOperation(PixelOperationType operationType, uint layerIndex, Point location)
        {
            OperationType = operationType;
            Location = location;
            LayerIndex = layerIndex;
        }
    }
}