Page 3 of 3
Re: Spider Web Drawing
Posted: Thu May 05, 2016 10:28 pm
by idle
to open on linux think this should work for most desktops
Code: Select all
Case #PB_OS_Linux : ProcedureReturn RunProgram("xdg-open",FileName, "")
Re: Spider Web Drawing
Posted: Sun May 08, 2016 5:55 pm
by JHPJHP
Hi idle,
Thank you, that worked perfectly.
------------------------------------
Updated:
- added 1 menu item
--
Open Control Panel: adds the ability to fine-tune the drawing effect
- applied the patch by
idle to the
OpenOriginalImage Procedure
NB*: Settings are save to an ADS (Alternate Data Stream) attached to the default image (only available in the Windows OS).
Re: Spider Web Drawing
Posted: Sat May 19, 2018 7:29 pm
by JHPJHP
Updated:
-
added DPI awareness:
SetProcessDpiAwarenessContext
Re: Spider Web Drawing
Posted: Sun May 20, 2018 2:26 am
by Dude
Your app crashes here on Win 7 (64-bit) and PureBasic v5.62 (32-bit). Crashes if I run it from the PB source, or from the compiled exe. No error message in the IDE, just the error in the screenshot below.
SetProcessDpiAwarenessContext is for Win 10 only, so I fixed it by changing the SetDpiAwarenessContext() procedure to this:
Code: Select all
Procedure SetDpiAwarenessContext()
If OSVersion()=>#PB_OS_Windows_10
user32 = OpenLibrary(#PB_Any, "user32.dll")
If user32
SetProcessDpiAwarenessContext = GetFunction(user32, "SetProcessDpiAwarenessContext")
SetProcessDpiAwarenessContext(#DPI_AWARENESS_CONTEXT_SYSTEM_AWARE)
CloseLibrary(user32)
EndIf
EndIf
EndProcedure
Re: Spider Web Drawing
Posted: Sun May 26, 2019 3:29 am
by JHPJHP
Hi Dude,
Thank you for pointing out the OS limitation using SetProcessDpiAwarenessContext; problem should now be fixed.
NB*: All of my other posts using this Function have also been patched.
----------------------------------------------------------
Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option
Re: Spider Web Drawing
Posted: Wed Oct 20, 2021 8:25 pm
by JHPJHP
Updated:
- improved support for images with transparency