From c21ac9b13e6c5385c45aa8ab134d73c1e93fd139 Mon Sep 17 00:00:00 2001
From: RepoErik <84872500+BiologyTools@users.noreply.github.com>
Date: Sun, 21 Apr 2024 05:10:13 +0300
Subject: [PATCH] 5.0.1 Tile Cache Fix.
---
BioGTK.csproj | 12 ++++++------
Source/Bio/ISlideSource.cs | 2 +-
Source/ImageView.cs | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/BioGTK.csproj b/BioGTK.csproj
index 08466e6..c9545cd 100644
--- a/BioGTK.csproj
+++ b/BioGTK.csproj
@@ -3,8 +3,8 @@
net8.0
Library
osx-x64;linux-x64;win-x64;win-arm64;linux-arm64;osx-arm64;
- 5.0.0
- 5.0.0
+ 5.0.1
+ 5.0.1
True
BioGTK
BioGTK
@@ -17,11 +17,11 @@
GPL-3.0-only
True
A .NET application & library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac.
- 5.0.0
+ 5.0.1
AnyCPU
True
AnyCPU
- BioImage.IO models support both ONNX & PyTorch models.
+ Tile Cache Fix.
Erik Repo
@@ -464,12 +464,12 @@
BioGTK
com.BioGTK
- 5.0.0
+ 5.0.1
APPL
????
BioGTKApp
bio.icns
- 5.0.0
+ 5.0.1
NSApplication
true
diff --git a/Source/Bio/ISlideSource.cs b/Source/Bio/ISlideSource.cs
index b7ee4d4..0097a3c 100644
--- a/Source/Bio/ISlideSource.cs
+++ b/Source/Bio/ISlideSource.cs
@@ -69,7 +69,7 @@ public class TileCache
private LruCache cache;
private int capacity;
SlideSourceBase source = null;
- public TileCache(SlideSourceBase source, int capacity = 500)
+ public TileCache(SlideSourceBase source, int capacity = 1000)
{
this.source = source;
this.capacity = capacity;
diff --git a/Source/ImageView.cs b/Source/ImageView.cs
index 0488ae1..3bd5a60 100644
--- a/Source/ImageView.cs
+++ b/Source/ImageView.cs
@@ -1265,7 +1265,7 @@ private void ImageView_KeyPressEvent(object o, KeyPressEventArgs e)
keyDown = e.Event.Key;
double moveAmount = 5 * Scale.Width;
double zoom = Level;
- double movepyr = 50 * Level;
+ double movepyr = 50 * (Level+1);
if (e.Event.Key == Gdk.Key.c && e.Event.State == ModifierType.ControlMask)
{
CopySelection();