Page 2 of 2

Re: Large Image Viewer

Posted: Fri Nov 05, 2021 4:17 pm
by JHPJHP
Updated:
- added Rotate Image
- improved Color Filters
- various other enhancements
- squashed a bug

Rotate Image
From the context-menu the following new options have been added.
- Flip Vertical
- Flip Horizontal
- 90 Degrees
- 180 Degrees
- 270 Degrees

Rotated Image values are not saved to the XML file, and will not survive a restart.
In order to keep the image rotated after a restart, first save the image, which will then become the default image.
When an image is rotated, scroll position and detached map locations are reset, and will not survive a restart unless the image is first saved.

Color Filters
The numerous color algorithms now better support images with transparency.
Windows Services & Other Stuff and Spider Web Drawing have also been updated.

Re: Large Image Viewer

Posted: Thu Feb 24, 2022 5:06 pm
by JHPJHP
Updated:
- fixed Color Filters

Color Filters
Patched a small bug in the numerous color algorithms; Windows Services & Other Stuff (ColorConversion) was also updated.

Image

Re: Large Image Viewer

Posted: Fri Feb 25, 2022 1:01 am
by BarryG
Thanks for the update, JHPJHP!

Re: Large Image Viewer

Posted: Fri Feb 25, 2022 1:38 am
by ChrisR
Your large image viewer is just great, thanks also for the update :)

Re: Large Image Viewer

Posted: Fri Feb 25, 2022 9:46 am
by Lord
Maybe the Image map should instantly reflect any
repositioning by the scrollbar.

Re: Large Image Viewer

Posted: Sat Feb 26, 2022 9:35 am
by JHPJHP
Hi BarryG, ChrisR,

Thank you as always for your positive comments.

---------

Hi Lord,
Lord wrote:Maybe the Image map should instantly reflect any repositioning by the scrollbar.
Thank you for pointing this out; up to this point I hadn't noticed that the map didn't update until the scrollbar was released.

Originally, this was only meant to demonstrate how to scroll an image within a ScrollAreaGadget without using the scrollbars.
The Show Scrollbars context menu option was an after-thought...

Updated: Map will now instantly reflect any repositioning by the scrollbars.

Re: Large Image Viewer

Posted: Tue Mar 01, 2022 11:01 pm
by JHPJHP
Updated:
- improved Set Viewer Size (context menu option)
- added Drag & Drop (image onto ScrollAreaGadget)
- added SysTray Icon (right-mouse-click context menu)
- various minor enhancements

Set Viewer Size
Previously a manual restart was required; was replaced with the option to auto restart.

Re: Large Image Viewer

Posted: Thu Apr 07, 2022 4:37 pm
by JHPJHP
Updated:
- improved Color Filters
- added Save Image > Display Filtered context menu option

Color Filters
The speed for applying color filters has more then doubled; see here for more information.

NB*: Spider Web Drawing has also been updated with the improved Color Filters.

Save Image > Display Filtered
Select an image mask (file) to filter parts of another image to transparency, saving the modified image to a user-defined PNG.

Image Filter: cloud.png, Color Filter: sepia (transparent areas shown as black)
Image

Re: Large Image Viewer

Posted: Tue Jan 24, 2023 6:27 am
by JHPJHP
Updated:
- removed flicker
- squashed a bug when saving with filter

While testing the application in the new beta version of PureBasic, I noticed a prevalent flicker when setting the color filters, resizing, etc.
After various changes and a few improvements, it seems that the flicker is gone; tested on both Windows 10 and Windows 11.

Not sure if the programs stability extends outside my own environment.

1. Use the context menu to open the image and set the various color filters.
2. Use the arrow keys to resize the image; can also be set from the context menu.

Re: Large Image Viewer

Posted: Tue Jan 31, 2023 5:19 pm
by JHPJHP
Updated:
- some minor improvements

Noticed when the Image Map was detached and an area on the map was double-clicked, the map would show a slight flicker.
- holding the left-mouse-button down will make the window semi-transparent, dragging the mouse will move the window
- double-clicking an area of the map will center the main image to that location

Updated the algorithm to better distinguish between a single click and a double-click; the issue was probably always there, but I didn't noticed it.

NB*: Free executables (x86/x64) can be downloaded from My PureBasic Stuff; see FREE STUFF.

Image

Re: Large Image Viewer

Posted: Tue Jan 31, 2023 5:27 pm
by Caronte3D
You are doing much changes noticed by using the new beta... I'm curious what kind of changes are 🤔

Re: Large Image Viewer

Posted: Tue Jan 31, 2023 7:37 pm
by JHPJHP
Hi Caronte3D,

My first post after Beta 1 was released sufficiently described the problem.
My second post after Beta 2 was released has been updated with additional information.

I don't often use the things I've written, they start off as an itch and I scratch until satisfied. But when a new version of PureBasic is released, I revisit my various scripts and programs to see if anything has changed or could potentially be improved.

This time around not only was I testing against PureBasic versions, but my computers OS was also updated from Windows 10 to 11.

In short, the updates may or may not be related to the beta release, it's just when I do most of my testing.

-----------------------------------------

Updated:
- fixed a small bug

Occurred when opening the program after a previously loaded image, set with a color filter, was deleted or moved.

Re: Large Image Viewer

Posted: Tue Jan 31, 2023 9:24 pm
by Caronte3D
Thanks for the clarification :wink: