IReadOnlyChunkyImage.cs 691 B

123456789101112131415161718
  1. using ChunkyImageLib.DataHolders;
  2. using PixiEditor.DrawingApi.Core.ColorsImpl;
  3. using PixiEditor.DrawingApi.Core.Numerics;
  4. using PixiEditor.DrawingApi.Core.Surface;
  5. namespace ChunkyImageLib;
  6. public interface IReadOnlyChunkyImage
  7. {
  8. bool DrawMostUpToDateChunkOn(VecI chunkPos, ChunkResolution resolution, DrawingSurface surface, VecI pos, Paint? paint = null);
  9. RectI? FindLatestBounds();
  10. Color GetCommittedPixel(VecI posOnImage);
  11. Color GetMostUpToDatePixel(VecI posOnImage);
  12. bool LatestOrCommittedChunkExists(VecI chunkPos);
  13. HashSet<VecI> FindAffectedChunks(int fromOperationIndex = 0);
  14. HashSet<VecI> FindCommittedChunks();
  15. HashSet<VecI> FindAllChunks();
  16. }