Hi Thorsten
On a roll today, even got User defined Coordinates working
Can you tell me, what does Draw::#DPI do?
Edit: I see it now: DesktopScaled
[Module] DrawVectorEx - Module
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: [Module] DrawVectorEx - Module
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: [Module] DrawVectorEx - Module
Hi Thorsten
It looks like there is a snag with using DesktopScaled for individual drawing entities, the units of measure are then tied to Pixels only? Most drawing work is done in either millimeters or inches.
I think it should be OK to work without this feature, until now I have found it adequate to ensure the Compiler dpi aware option is selected. Food for thought for those that need it.
Edit: Now I'm not sure Am I over thinking it? If I change the outputs of dpiX and dpiY to doubles, then accuracy shouldn't be lost if the Units are inches or mm.
It looks like there is a snag with using DesktopScaled for individual drawing entities, the units of measure are then tied to Pixels only? Most drawing work is done in either millimeters or inches.
I think it should be OK to work without this feature, until now I have found it adequate to ensure the Compiler dpi aware option is selected. Food for thought for those that need it.
Edit: Now I'm not sure Am I over thinking it? If I change the outputs of dpiX and dpiY to doubles, then accuracy shouldn't be lost if the Units are inches or mm.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: [Module] DrawVectorEx - Module
Hi Thorsten
Would it be possible to introduce support for Dash, Dot and Custom Dash types?
Plus the different line endings available?
#PB_Path_Default : No special behavior (default value)
#PB_Path_RoundEnd : Draw the line(s) with a rounded ends
#PB_Path_SquareEnd : Draw the line(s) with a square box at the ends
#PB_Path_RoundCorner : Draw the line(s) with rounded corners
#PB_Path_DiagonalCorner : Draw the line(s) with diagonally cut corners
Would it be possible to introduce support for Dash, Dot and Custom Dash types?
Plus the different line endings available?
#PB_Path_Default : No special behavior (default value)
#PB_Path_RoundEnd : Draw the line(s) with a rounded ends
#PB_Path_SquareEnd : Draw the line(s) with a square box at the ends
#PB_Path_RoundCorner : Draw the line(s) with rounded corners
#PB_Path_DiagonalCorner : Draw the line(s) with diagonally cut corners
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] DrawVectorEx - Module
Update:
- SetDotPattern(LineWidth.d, Array Pattern.d(1), Flags.i=#False, StartOffset.d=0)
- Added: DisableDotPattern(State.i=#True)
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: [Module] DrawVectorEx - Module
Thanks Thorsten
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: [Module] DrawVectorEx - Module
Hi Thorsten
There, but not implemented?
#RoundEnd = #PB_Path_RoundEnd
#SquareEnd = #PB_Path_SquareEnd
#RoundCorner = #PB_Path_RoundCorner
#DiagonalCorner = #PB_Path_DiagonalCorner
There, but not implemented?
#RoundEnd = #PB_Path_RoundEnd
#SquareEnd = #PB_Path_SquareEnd
#RoundCorner = #PB_Path_RoundCorner
#DiagonalCorner = #PB_Path_DiagonalCorner
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.