Search found 5685 matches

by idle
Thu Oct 02, 2025 10:49 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

Re: vector drawing display list

WIP Idea added dlparams so you can set an id on a display list command which allows you to modify the instruction
look closely when you move the mouse wheel, it modifies the rotation angle of the "quick brown fox.." and changes the color

This will help facilitate doing animations in SVG and also ...
by idle
Thu Oct 02, 2025 7:24 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] SVG - Module (all OS)
Replies: 12
Views: 6719

Re: [Module] SVG - Module (all OS)

I haven't posted the fix yet. I will make a new thread for it it.
by idle
Thu Oct 02, 2025 12:21 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

Re: vector drawing display list

That's useful !
I will also add a *userdata parameter to the wrapper functions so you can acces it while walking the display list, then you can use that to do things like conditional rendering based or dynamicly edit the display list. If you call the wrapper functions it will call the vector ...
by idle
Thu Oct 02, 2025 9:34 am
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

Re: vector drawing display list

pjay wrote: Thu Oct 02, 2025 8:56 am This is really nice. 8)

What's missing though, is some love for DPI awareness - you clearly still have good eyesight :lol:
Sorry I didn't even think about that for the demo and no I just stick my nose up to the screen and squint.
fixed
by idle
Thu Oct 02, 2025 6:05 am
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder

acreis wrote: Tue Sep 30, 2025 4:41 pm Well I only can say thank you very much!
thanks.
I've done a display list test here and am starting to integrate it into the module
viewtopic.php?p=646022#p646022
by idle
Thu Oct 02, 2025 5:03 am
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

Re: vector drawing display list


Does the canvas have layers you can enable/disable?
Or must we code that action?


No but the vector lib has layers. BeginVectorLayer()
I will eventually be adding a DOM so you will be able to turn layers on or off, select or modify elements, insert elements, do animation and event callbacks ...
by idle
Wed Oct 01, 2025 10:55 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

Re: vector drawing display list

I had double buffering in my old canvas so you could draw and flip.
by idle
Wed Oct 01, 2025 9:10 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 10
Views: 322

vector drawing display list

vector drawing display list, It's currently generic for the vector drawing functions but it's part of the SVG module
use cases.
for instance want to do a vector graphics drawing editor. you can use display lists to do undo and redo
or just want to resize the window and canvas from runtime input ...
by idle
Tue Sep 30, 2025 12:28 pm
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder

I don't see any issue in writing it in pb, The amount of time it would take to import and wrap sika, I could adapt the usesvgmodule a few times over.
Sika is a big lib and unless it has a c lib or the c++ uses pure virtual classes you'd be need to write wrapper functions in c++ to export the classes.
by idle
Tue Sep 30, 2025 11:02 am
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder


Hi idle,

I made a mistake, plutosvg and nanosvg was rendering some svg as a black shadow only. UseSvgImage is fine. Great to be true, I'm sticking to it to render toolbar and menu icons.


It will hopefully be a bit more flexible and faster than them to on redraws. a few things to work out on ...
by idle
Tue Sep 30, 2025 10:30 am
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder

pf shadoko wrote: Tue Sep 30, 2025 8:53 am wait a moment, this not work on vectordrawing
i will adapt this
no rush there's a lot for me to to do in the mean time but yes please if you can adapt it.
by idle
Tue Sep 30, 2025 7:42 am
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder


For bitmap fonts, we can handle that.
Take it from my screen library.
https://www.purebasic.fr/english/viewtopic.php?t=84206&hilit=shader+sprite
;============================================================================================ fastfont
Procedure SS_InitFont(num,name.s, height.f ...
by idle
Tue Sep 30, 2025 3:17 am
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder


❌ SVG Features That Are Difficult or Impossible to Implement with pb.

| SVG Feature | Status in VectorDrawing | Notes |
|-------------------------------------|------------------------------------------|-------|
| Filters (blur, drop shadow, feGaussianBlur) | ❌ Not supported | No API for image ...
by idle
Mon Sep 29, 2025 10:26 pm
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder


Seems great................but where can I find the dll?


it will all be native just using the pb vector lib. I'm still working through it and addressing the issues then I'll look at display lists
and then I can look at adding animations effects and events.

I looked at adding text support to ...
by idle
Mon Sep 29, 2025 8:49 pm
Forum: Feature Requests and Wishlists
Topic: UseSVGImageDecoder/Encoder
Replies: 35
Views: 1693

Re: UseSVGImageDecoder/Encoder


That's great idle, thank you!

But rendering some files results only black shape o inteded drawing.

Same occurs with nanosvg.

I managed to compile a plutosvg.dll, seems more svgs are rendered right.

Old resvg.dll is very good but have some dependency I don't know so I can't use in another ...