Large Image Viewer

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

Large Image Viewer

Post by JHPJHP »

Last edited by JHPJHP on Sun Oct 17, 2021 4:06 am, edited 9 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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 Sat Oct 09, 2021 7:48 pm, edited 1 time in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
BarryG
Addict
Addict
Posts: 1718
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.
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Large Image Viewer

Post by JHPJHP »

Updated:
- added a couple menu options
-- Use GDI Resize
-- Resize Image > Zoom Maximum > Zoom Plus > Zoom Minus > Zoom Minimum
- improved resize / zoom
- squashed a couple bugs

Use GDI Resize
The default option uses the PureBasic StartDrawing command, while the alternative option uses the StretchBlt API; on my system the difference is negligible.

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


Pinch Zoom: +/- 1.1

Resize Image
Up Arrow: Zoom Maximum (accurate to 1.01)
Right Arrow: Zoom + [ 1.5 ]
Left Arrow: Zoom - [ 1.5 ]
Down Arrow: Zoom Minimum (accurate to 1.01)
Spacebar: Reset Image Size
Last edited by JHPJHP on Mon Oct 18, 2021 7:13 pm, edited 4 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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

Color Filters (see image in first post)
- RGB / BGR
- Grayscale
- Sepia
- Negative
- YUV
- YIQ
- XYZ
- Hunter LAB
- CIE-LAB
- CIE-LUV
- HSV / HSB
- HLS / HSL
Last edited by JHPJHP on Mon Oct 18, 2021 7:13 pm, edited 1 time in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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
- removed Use GDI Resize menu option
- various other improvements

Memory Holes
These were causing intermittent crashes on my system, but now everything seems fairly stable.

Use GDI Resize (removed)
Transparency with HALFTONE not supported.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.
Use the mouse pointer to click the background image, activating the effect.

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

Image

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
Post Reply