AS Image Viewer

Post your working scripts, libraries and tools.
User avatar
mesutakcan
Posts: 35
Joined: 16 Mar 2024, 10:50
Location: Mersin
Contact:

AS Image Viewer

Post by mesutakcan » 30 Jul 2024, 15:51

AS Image Viewer is a minimalist image viewer application. This application uses GDI+ for rendering images and supports multiple image formats. It allows for easy navigation and management through a simple GUI.
Image

Features:
Renders images using GDI+
Supports multiple image formats: JPG, JPEG, PNG, GIF, BMP, TIF, ICO, WEBP, WMF
Easy navigation: Next/previous images with right/left arrow keys
Zoom in and out: Using Numpad + and - keys
Refresh image with F5 key
Simple and user-friendly interface
Always on top option
Quick access via right-click menu

Source code and exe file at https://github.com/akcansoft/AS-Image-Viewer/

This application uses the library file gdip_all.ahk https://github.com/buliasz/AHKv2-Gdip
Last edited by mesutakcan on 11 Aug 2024, 02:31, edited 1 time in total.

User avatar
tidbit
Posts: 1282
Joined: 29 Sep 2013, 17:15
Location: USA

Re: AS Image Viewer

Post by tidbit » 31 Jul 2024, 10:29

screenshots are a good way to build interest as the user can see what they're downloading. An image (or 3) of an image viewer is especially a good idea.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?

User avatar
mesutakcan
Posts: 35
Joined: 16 Mar 2024, 10:50
Location: Mersin
Contact:

Re: AS Image Viewer

Post by mesutakcan » 02 Aug 2024, 08:23

You are right, but this application only shows pictures, so the screenshot will be the picture it shows.


Joeyy
Posts: 60
Joined: 08 Mar 2019, 01:57

Re: AS Image Viewer

Post by Joeyy » 06 Dec 2024, 02:17

I appreciate your work on the software. I'm a learner of Autohotkey. I modified 2 places of your source code to fit my needs.

Code: Select all

g := Gui("+OwnDialogs +AlwaysOnTop -DPIScale")

Code: Select all

ShowGui() {
  g.Show("w0")
  if imgWidth > A_ScreenWidth
    imgDisplayWidth := A_ScreenWidth
  else
    imgDisplayWidth := imgWidth

  if imgHeight > (A_ScreenHeight-136)   ;titlebar height + taskbar height = 136
    imgDisplayHeight := (A_ScreenHeight-136)
  else
    imgDisplayHeight := imgHeight

  ;~ g.Show("x0 y0 w" . imgDisplayWidth . " h" . imgDisplayHeight)
  g.Show("x" . ((A_ScreenWidth-imgDisplayWidth)/2) . " y0 w" . imgDisplayWidth . " h" . imgDisplayHeight)
}
But I need the pic moveable with mouse like the gif. Could you help me?
https://wx3.sinaimg.cn/large/0073625Kgy1hwb7wchri5g30hs0aknpf.gif

User avatar
mesutakcan
Posts: 35
Joined: 16 Mar 2024, 10:50
Location: Mersin
Contact:

Re: AS Image Viewer

Post by mesutakcan » 06 Dec 2024, 02:29

https://wx3.sinaimg.cn/large/0073625Kgy1hwb7wchri5g30hs0aknpf.gif
403 Forbidden
You don't have permission to access the URL on this server.

Joeyy
Posts: 60
Joined: 08 Mar 2019, 01:57

Re: AS Image Viewer

Post by Joeyy » 12 Dec 2024, 21:50

@mesutakcan
Very sorry! Check this:
Image

I want to move the image within the window frame and the window should have scrollbar. And the window size should stay in the area of the computer screen (your original one would exceed the computer screen if making the image the real size)
Last edited by Ragnar on 13 Dec 2024, 03:47, edited 2 times in total.
Reason: fixed img link

Cebolla
Posts: 43
Joined: 17 Feb 2024, 17:27

Re: AS Image Viewer

Post by Cebolla » 13 Dec 2024, 17:43

@Joeyy

For GUI Scrollbar, you may be able to use this here https://autohotkey.com/board/topic/26033-scrollable-gui-proof-of-concept/#entry168174

Post Reply

Return to “Scripts and Functions (v2)”