Search found 94 matches

by punak
Wed Sep 17, 2025 2:41 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 9
Views: 477

Re: SVG to PB VectorDrawing Codes

Justin wrote: Wed Sep 17, 2025 1:36 pm This is great but i think it needs the x, y, w, h parameters.
Hi, thanks for your comment. I used the following functions to resize, move and rotate the generated vector image and it worked correctly.

ScaleCoordinates,TranslateCoordinates,RotateCoordinates
by punak
Tue Sep 16, 2025 10:14 am
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 9
Views: 477

Re: SVG to PB VectorDrawing Codes

dige wrote: Tue Sep 16, 2025 10:01 am Thank you punak!

I tried it, but I get the following error when creating the code: AddPathPolygon () is not a function
Tested with PB 6.30B2 x64 Windows..
Thanks for your test. I am currently updating the module with the help of AI.more items will be added and improved in the next version.
by punak
Tue Sep 16, 2025 2:05 am
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 9
Views: 477

Re: SVG to PB VectorDrawing Codes


Dear punak,

I would appreciate it if you would respect the license, when you post a close copy of an other source code which is published explicit under the MIT licence, which states:
"The above copyright notice and this permission notice shall be included in all copies or substantial portions ...
by punak
Mon Sep 15, 2025 1:35 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 9
Views: 477

Re: SVG to PB VectorDrawing Codes

Sample code generated:



Enumeration
#Canvas
EndEnumeration

If OpenWindow(0, 0, 0, 800, 600, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 0, 0, 800, 600)

; Start Drawing
If StartVectorDrawing(CanvasVectorOutput(#Canvas))
VectorSourceColor($FF000000 ...
by punak
Mon Sep 15, 2025 1:31 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 9
Views: 477

SVG to PB VectorDrawing Codes

Hi all,
I needed a project that would convert SVG files into PB VectorDrawing codes.
Using Capilot ai, I applied these changes to the Thorsten1867 SVG module.
https://www.purebasic.fr/english/viewtopic.php?p=552623&hilit=UseSVGImageModule#p552623
Of course, according to Capilot, there are still 6 ...
by punak
Thu Sep 11, 2025 5:10 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 221
Views: 99279

Re: EditorFactory - Module for object management in a Canvas

I'm posting again because I'm in a bit of a hurry.
Now, if I use svgVectorOutput instead of canvasVectoroutput in the objectdrawing function, will there be any problems with the drawing???
by punak
Mon Sep 08, 2025 9:20 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 221
Views: 99279

Re: EditorFactory - Module for object management in a Canvas

Thanks for following up on my request.
I am building a visual calendar designer using your powerful EditorFactory - Module and of course, with the copilot laborious consultations :D
Your designer's output is a vector file for graphic designers.

The font problem seems to be a bug (SvgVectorOutput ...
by punak
Sat Sep 06, 2025 10:43 am
Forum: Bugs - Windows
Topic: [Done] SvgVectorOutput and fonts
Replies: 8
Views: 709

Re: SvgVectorOutput and fonts

I'm trying it on Windows and I'm having this problem for all fonts. :|
by punak
Fri Sep 05, 2025 9:29 pm
Forum: Bugs - Windows
Topic: [Done] SvgVectorOutput and fonts
Replies: 8
Views: 709

Re: SvgVectorOutput and fonts

For example, when I run the following code:

If OpenWindow(0, 0, 0, 500, 250, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 0, 0, 500, 250)
LoadFont(0, "tahoma", 20, #PB_Font_Italic)

If StartVectorDrawing(SvgVectorOutput("nt.svg",500,250))

VectorFont ...
by punak
Fri Sep 05, 2025 5:28 pm
Forum: Bugs - Windows
Topic: [Done] SvgVectorOutput and fonts
Replies: 8
Views: 709

[Done] SvgVectorOutput and fonts

Hello, why are the fonts used in the project not applied to the generated svg file when we use SvgVectorOutput?
What should be done to solve this problem?
by punak
Fri Sep 05, 2025 12:48 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 221
Views: 99279

Re: EditorFactory - Module for object management in a Canvas

Hello again,
How to enable z-order feature in this module? I want an object to be placed above other objects when I click on it.

Of course, if possible, please add the save to svg function.
by punak
Wed Sep 03, 2025 8:05 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 221
Views: 99279

Re: EditorFactory - Module for object management in a Canvas

@STARGÅTE : Thanks for your help.
Another question : How do I create a snap to grid mode to move objects?
by punak
Tue Sep 02, 2025 7:42 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 221
Views: 99279

Re: EditorFactory - Module for object management in a Canvas

Hello
How can we save the result of drawing by EditorFactory on canvas as svg?
by punak
Sun Oct 27, 2024 12:05 pm
Forum: Coding Questions
Topic: QR and webcam
Replies: 12
Views: 1605

Re: QR and webcam

Thank you very much :D
by punak
Sat Oct 26, 2024 2:34 am
Forum: Coding Questions
Topic: QR and webcam
Replies: 12
Views: 1605

Re: QR and webcam

Can you explain a little about how to detect barcode by webcam?