|
@@ -123,7 +123,7 @@ internal partial class DocumentViewModel : NotifyableObject
|
|
|
public StructureMemberViewModel? SelectedStructureMember { get; private set; } = null;
|
|
|
|
|
|
public Dictionary<ChunkResolution, DrawingSurface> Surfaces { get; set; } = new();
|
|
|
- public Dictionary<ChunkResolution, WriteableBitmap> Bitmaps { get; set; } = new()
|
|
|
+ public Dictionary<ChunkResolution, WriteableBitmap> LazyBitmaps { get; set; } = new()
|
|
|
{
|
|
|
[ChunkResolution.Full] = new WriteableBitmap(64, 64, 96, 96, PixelFormats.Pbgra32, null),
|
|
|
[ChunkResolution.Half] = new WriteableBitmap(32, 32, 96, 96, PixelFormats.Pbgra32, null),
|
|
@@ -162,7 +162,7 @@ internal partial class DocumentViewModel : NotifyableObject
|
|
|
LineToolOverlayViewModel = new();
|
|
|
LineToolOverlayViewModel.LineMoved += (_, args) => Internals.ChangeController.LineOverlayMovedInlet(args.Item1, args.Item2);
|
|
|
|
|
|
- foreach (KeyValuePair<ChunkResolution, WriteableBitmap> bitmap in Bitmaps)
|
|
|
+ foreach (KeyValuePair<ChunkResolution, WriteableBitmap> bitmap in LazyBitmaps)
|
|
|
{
|
|
|
DrawingSurface? surface = DrawingSurface.Create(
|
|
|
new ImageInfo(bitmap.Value.PixelWidth, bitmap.Value.PixelHeight, ColorType.Bgra8888, AlphaType.Premul, ColorSpace.CreateSrgb()),
|