using Minint.Core.Models; namespace Minint.Core.Services; public interface IFragmentService { /// /// Copies a rectangular region from one document/layer to another. /// Palette colors are merged: missing colors are added to the destination palette. /// /// Source document. /// Index of the source layer. /// Source rectangle X origin. /// Source rectangle Y origin. /// Width of the region to copy. /// Height of the region to copy. /// Destination document. /// Index of the destination layer. /// Destination X origin. /// Destination Y origin. /// Container width (shared by both docs). /// Container height (shared by both docs). void CopyFragment( MinintDocument srcDoc, int srcLayerIndex, int srcX, int srcY, int regionWidth, int regionHeight, MinintDocument dstDoc, int dstLayerIndex, int dstX, int dstY, int containerWidth, int containerHeight); }