[Module] ImageEx - Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] ImageEx - Gadget (all OS)

Post by Thorsten1867 »

Extended Image Gadget - Module (all OS / 64Bit / DPI)
  • Display images with the correct proportions
  • Automatic adjustment of too large images
  • Automatic centering of too small images
  • Dynamic image frame
  • Adding text [#Center/#Right/#Left | #Top/#Middle/#Bottom | #FitText]
  • Support for animated GIF & PNG
  • Support for SVG images
  • Automatic size adjustment of the gadget

Code: Select all

; ImageEx::AttachPopupMenu()    ; attachs a popup menu to the gadget
; ImageEx::DisableReDraw()      ; enable/disable redrawing of the gadget
; ImageEx::Gadget()             ; creates a new gadget
; ImageEx::SetAutoResizeFlags() ; [#MoveX|#MoveY|#Width|Height]
; ImageEx::SetColor()           ; similar to SetGadgetColor()
; ImageEx::SetFont()            ; similar to SetGadgetFont(), but FontNumber instead of FontID
; ImageEx::SetFlags()           ; adds flags to the gadget
; ImageEx::SetMargins()         ; define margins
; ImageEx::SetState()           ; similar to SetGadgetState(), but ImageNumber instead of ImageID
; ImageEx::SetText()            ; similar to SetGadgetText()
; ImageEx::ToolTip()            ; similar to GadgetToolTip()
Download: ImageExModule.pbi
Last edited by Thorsten1867 on Sat Apr 25, 2020 10:23 am, edited 4 times in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ImageEx - Gadget (all OS)

Post by Thorsten1867 »

Update: Support for animated GIFs
Last edited by Thorsten1867 on Sat Apr 25, 2020 9:50 am, edited 1 time in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: [Module] ImageEx - Gadget (all OS)

Post by Andre »

Another handy one, thank you :D

A little bug: change the standalone example to use "#Example = 0" and you will see the "Image not initialized" error...
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ImageEx - Gadget (all OS)

Post by Thorsten1867 »

Update:
  • Support for animated PNGs (APNG)
  • Support for SVG images
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply