It is currently Tue Oct 22, 2019 5:40 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Spider Web Drawing
PostPosted: Thu May 05, 2016 10:28 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3402
Location: New Zealand
to open on linux think this should work for most desktops
Code:
 Case #PB_OS_Linux : ProcedureReturn RunProgram("xdg-open",FileName, "")


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Sun May 08, 2016 5:55 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1585
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).

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Sat May 19, 2018 7:29 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1585
Updated:
- added DPI awareness: SetProcessDpiAwarenessContext

Image

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Sun May 20, 2018 2:26 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1897
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.

Image

SetProcessDpiAwarenessContext is for Win 10 only, so I fixed it by changing the SetDpiAwarenessContext() procedure to this:

Code:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Sun May 26, 2019 3:29 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1585
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

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye