ImageUtility 1.1.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package ImageUtility --version 1.1.7
NuGet\Install-Package ImageUtility -Version 1.1.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImageUtility" Version="1.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImageUtility --version 1.1.7
#r "nuget: ImageUtility, 1.1.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ImageUtility as a Cake Addin
#addin nuget:?package=ImageUtility&version=1.1.7

// Install ImageUtility as a Cake Tool
#tool nuget:?package=ImageUtility&version=1.1.7

using ImageUtility;

        var toolStrip = new ToolStrip() { Parent = this, };
        var toolStripMenuItemLoadImage = new ToolStripMenuItem() { Text = "LoadImage", };
        toolStrip.Items.Add(toolStripMenuItemLoadImage);

        toolStripMenuItemLoadImage.Click += (sender, e) =>
        {
            var ofd = new OpenFileDialog();
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                var ret = ImageViewer.ShowDialog(ofd.FileName, 0.8, true, 65);

                using (var img = ImageHelper.LoadImage(ofd.FileName))
                {
                    ret = ImageViewer.ShowDialog(img, 0.8, ofd.FileName, true, 65);
                }
            }
        };

        var toolStripMenuItemLoadMultipleImages = new ToolStripMenuItem() { Text = "Multiple images", };
        toolStrip.Items.Add(toolStripMenuItemLoadMultipleImages);

        toolStripMenuItemLoadMultipleImages.Click += (sender, e) =>
        {
            var ofd = new OpenFileDialog() { Multiselect = true };

            var r = ofd.ShowDialog();
            if (r == DialogResult.OK)
            {
                List<byte[]> binaryImages = new List<byte[]>();

                foreach (var f in ofd.FileNames)
                {
                    using (System.IO.FileStream fs = new System.IO.FileStream(f, System.IO.FileMode.Open, System.IO.FileAccess.Read))
                    {
                        var data = new byte[fs.Length];
                        fs.Read(data, 0, data.Length);
                        binaryImages.Add(data);
                    }
                }
                ImageViewer.ShowDialog(binaryImages, 0.5, "images", true);
            }
        };

        Action<string> progress = (v) => { Console.WriteLine(v); };
        PictureBoxEx pictureBoxEx = new PictureBoxEx(progress) { OpenMenuVisible = true, Height = 400 };
        Controls.Add(pictureBoxEx.Panel);
        Controls.Add(pictureBoxEx.Menu);
Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.4 99 2/4/2024
1.5.3 86 1/23/2024
1.5.2 148 12/30/2023
1.5.1 120 12/8/2023
1.5.0 108 11/27/2023
1.4.6 216 4/9/2023
1.4.4.1 294 12/4/2022
1.4.4 274 12/4/2022
1.4.3 288 11/23/2022
1.4.2.4 290 11/19/2022
1.4.2.3 315 11/5/2022
1.4.2.2 309 11/3/2022
1.4.2.1 335 10/30/2022
1.4.2 325 10/29/2022
1.4.1 370 9/22/2022
1.4.0 374 9/10/2022
1.3.9.1 372 8/28/2022
1.3.9 407 7/21/2022
1.3.8 392 7/19/2022
1.3.7 417 7/17/2022
1.3.6 380 7/7/2022
1.3.5 413 6/21/2022
1.3.4 401 5/22/2022
1.3.2 421 3/26/2022
1.3.1 402 3/20/2022
1.3.0 399 3/16/2022
1.2.7 414 3/15/2022
1.2.6 401 3/13/2022
1.2.2 390 3/6/2022
1.2.1 395 3/5/2022
1.2.0 400 2/8/2022
1.1.9 404 2/7/2022
1.1.8 418 2/6/2022
1.1.7 412 1/29/2022
1.1.5 262 12/14/2021
1.1.4 262 12/8/2021
1.1.3 269 12/7/2021
1.1.1 305 11/3/2021
1.0.8 320 10/20/2021