Skip to content

Commit

Permalink
5.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BiologyTools committed Nov 18, 2024
1 parent 2b8a954 commit 5bba08a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions BioGTK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
<TargetFramework>net8.0</TargetFramework>
<OutputType>Library</OutputType>
<RuntimeIdentifiers>osx-x64;linux-x64;win-x64;win-arm64;linux-arm64;osx-arm64;</RuntimeIdentifiers>
<AssemblyVersion>5.7.0</AssemblyVersion>
<FileVersion>5.7.0</FileVersion>
<AssemblyVersion>5.7.1</AssemblyVersion>
<FileVersion>5.7.1</FileVersion>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageId>BioGTK</PackageId>
<Title>BioGTK</Title>
<PackageProjectUrl>https://github.com/BiologyTools/BioGTK</PackageProjectUrl>
<PackageIcon>banner.jpg</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>5.7.0</PackageVersion>
<PackageVersion>5.7.1</PackageVersion>
<RepositoryUrl>https://github.com/BiologyTools/BioGTK</RepositoryUrl>
<PackageTags>Biology; GTK; ImageJ; Bio-Formats; Image-Stacks; Microscopy; Whole-Slide-Image; Segment-Anything; SAM; QuPath;</PackageTags>
<PackageLicenseExpression> GPL-3.0-only</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<Description>A .NET application &amp; library for editing &amp; annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters &amp; macro functions. Supports Windows, Linux and Mac.</Description>
<Version>5.7.0</Version>
<Version>5.7.1</Version>
<Platforms>AnyCPU</Platforms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<PlatformTarget>AnyCPU</PlatformTarget>
<PackageReleaseNotes>CUDA support for Linux and Mac related bug fixes.</PackageReleaseNotes>
<PackageReleaseNotes>Fix for some pyramidal images not opening.</PackageReleaseNotes>
<Authors>Erik Repo</Authors>
</PropertyGroup>

Expand Down Expand Up @@ -416,7 +416,7 @@

<ItemGroup>
<PackageReference Include="AForgeBio" Version="1.9.1" />
<PackageReference Include="BioLib" Version="2.9.1" />
<PackageReference Include="BioLib" Version="2.9.1.1" />
<PackageReference Include="Flurl" Version="4.0.0" />
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="ImageJ.NET" Version="154.0.0.2" />
Expand Down Expand Up @@ -459,12 +459,12 @@
<CFBundleName>BioGTK</CFBundleName>
<CFBundleDisplayName>BioGTK</CFBundleDisplayName>
<CFBundleIdentifier>com.BioGTK</CFBundleIdentifier>
<CFBundleVersion>5.7.0</CFBundleVersion>
<CFBundleVersion>5.7.1</CFBundleVersion>
<CFBundlePackageType>APPL</CFBundlePackageType>
<CFBundleSignature>????</CFBundleSignature>
<CFBundleExecutable>BioGTKApp</CFBundleExecutable>
<CFBundleIconFile>bio.icns</CFBundleIconFile>
<CFBundleShortVersionString>5.7.0</CFBundleShortVersionString>
<CFBundleShortVersionString>5.7.1</CFBundleShortVersionString>
<NSPrincipalClass>NSApplication</NSPrincipalClass>
<NSHighResolutionCapable>true</NSHighResolutionCapable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
8 changes: 5 additions & 3 deletions Source/ImageView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,14 @@ private void InitPreview()
else
showOverview = true;
Bitmap bm = BioImage.GetTile(SelectedImage, SelectedImage.GetFrameIndex(GetCoordinate().Z, GetCoordinate().C, GetCoordinate().T), MacroResolution.Value - 2, 0, 0, SelectedImage.Resolutions[MacroResolution.Value - 2].SizeX, SelectedImage.Resolutions[MacroResolution.Value - 2].SizeY);
ResizeBicubic re = new ResizeBicubic(overview.Width, overview.Height);
ResizeBilinear re = new ResizeBilinear(overview.Width, overview.Height);
Bitmap bmp = re.Apply(bm.GetImageRGB());
bmp.SwitchRedBlue();
overviewImage = bmp;
}
else
{
int lev = SelectedImage.Resolutions.Count - 1;
int lev = SelectedImage.Resolutions.Count-1;
double aspx = (double)SelectedImage.Resolutions[lev].SizeX / (double)SelectedImage.Resolutions[lev].SizeY;
double aspy = (double)SelectedImage.Resolutions[lev].SizeY / (double)SelectedImage.Resolutions[lev].SizeX;
if (SelectedImage.Resolutions[lev].SizeInBytes > 1500000000)
Expand All @@ -769,8 +770,9 @@ private void InitPreview()
showOverview = true;
overview = new Rectangle(0, 0, (int)(aspx * 120), (int)(aspy * 120));
Bitmap bm = BioImage.GetTile(SelectedImage, SelectedImage.GetFrameIndex(GetCoordinate().Z, GetCoordinate().C, GetCoordinate().T), lev, 0, 0, SelectedImage.Resolutions[lev].SizeX, SelectedImage.Resolutions[lev].SizeY);
ResizeBicubic re = new ResizeBicubic(overview.Width, overview.Height);
ResizeBilinear re = new ResizeBilinear(overview.Width, overview.Height);
Bitmap bmp = re.Apply(bm.GetImageRGB());
bmp.SwitchRedBlue();
overviewImage = bmp;
}
ShowOverview = true;
Expand Down

0 comments on commit 5bba08a

Please sign in to comment.