Large Image Viewer

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added Image Map
- added status bar
- better transitions
- various other improvements

Image Map
Use the mouse to drag the map display area to different parts of the map image; the main scroll area will auto-adjust its location to match.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added Show Scrollbars
- added Image Viewer > Fullscreen, Widescreen, Maximized
- various other improvements
- squashed a couple bugs

Settings for all aspects of the program are saved to an XML file; includes four user-defined (detached) map locations.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- map sizes improved
- better DPI awareness
- improved transitions
- optimized parts of code
- squashed a couple bugs

Map Sizes
In addition to Small, Medium and Large, map sizes now adjust to image orientations of portrait and landscape, and Image Viewer setting of Fullscreen, Widescreen and Maximized.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- removed large image from executable
- added a background image
- various minor improvements
- squashed a couple small bugs
Last edited by JHPJHP on Thu Feb 24, 2022 5:17 pm, edited 3 times in total.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Large Image Viewer

Post by BarryG »

Looks good! Noted for future reference in case I need it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Hi BarryG,

Thank you for your comments.

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

Updated:
- added a Close Image menu option
- restructured the menu Procedure
- couple minor improvements
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- numerous improvements
- optimized various parts of the code
- squashed a couple bugs

Numerous Improvements
Switched from using a Mutex/Semaphore to a Windows Timer; major improvements to map functionality.
Added pinch zoom touchpad gestures; slow compared to similar examples, but useful nonetheless.
Image Map better supports transparency.
Added the following context-menu options.
- Save Image > Scroll Area > Display Area
- Reset Image (returns a zoomed image to original size)
Updated and improved the status bar.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- set size and other constraints
- optimized various parts of the code
- squashed a couple bugs
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added some menu options
-- Resize Image > Zoom Maximum > Zoom Plus > Zoom Minus > Zoom Minimum

Maximum: Width * Height 96,000,000 pixels or 1000%
Minimum: Width | Height 50 pixels or 5%


Pinch Zoom: +/- 1.1 (in place)

Resize Image
Up Arrow: Zoom Maximum (center / accurate to 1.01)
Right Arrow: Zoom + [ 1.5 ] (in place)
Left Arrow: Zoom - [ 1.5 ] (in place)
Down Arrow: Zoom Minimum (center / accurate to 1.01)
Spacebar: Reset Image Size / location

NB*: If the display area is touching a border, it will stick to the border while zooming in place.
Last edited by JHPJHP on Tue Oct 26, 2021 9:59 pm, edited 7 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added multiple color filters (available from context-menu)
- numerous improvements to various parts of the code
Last edited by JHPJHP on Thu Feb 24, 2022 5:18 pm, edited 3 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added a splash window
- enhanced the various color filters
- filled-in some memory holes
- various other improvements

Memory Holes
These were causing intermittent crashes on my system, but now everything seems fairly stable.
Last edited by JHPJHP on Tue Oct 26, 2021 10:00 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added "Image Waves" to background image
- couple minor improvements

Image Waves
I recently made some changes to Image Waves: LUT to better support transparency.
As was my original intention, for anyone to easily incorporate this old-skool animation into an application, I finally got around to doing it myself.
Move the mouse pointer over any part of the background image, click the image, activating the effect.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- improved resize/zoom
- various optimizations
- squashed a couple bugs

Resize / Zoom
See the following post for additional information viewtopic.php?p=575869#p575869
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added a context-menu option to Enable Sticky Borders
- fixed an issue with pinch zoom
- squashed a couple other bugs

Sticky Borders
When resizing an image, if the image is touching one or more borders, it will zoom from that position, sticking to the border.
Last edited by JHPJHP on Fri Nov 05, 2021 4:41 pm, edited 3 times in total.
Locked