The DATA is a Pbyte pointer that points to a block of memory.. In this case it is assumed you have that block of memory somewhere that represents the image format that is been specified a couple lines prior. The actions merely set's up this object so that the following code will use a valid set of data to load from your block of data you point it to via the DATA pointer of this object.Notice the size too, it too must represent at least enough space, too. This all means that somewhere you must already have an image that is raw memory that needs only to be pointed to.. The PIXELS here is just a foot note for you understand it must be assigned from a valid pointer that points to your pixels or at least an valid address of.
Quote from: jamie on January 16, 2022, 07:40:32 pmThe DATA is a Pbyte pointer that points to a block of memory.. In this case it is assumed you have that block of memory somewhere that represents the image format that is been specified a couple lines prior. The actions merely set's up this object so that the following code will use a valid set of data to load from your block of data you point it to via the DATA pointer of this object.Notice the size too, it too must represent at least enough space, too. This all means that somewhere you must already have an image that is raw memory that needs only to be pointed to.. The PIXELS here is just a foot note for you understand it must be assigned from a valid pointer that points to your pixels or at least an valid address of.Impressive.
That's exactly what my father said the moment I came into this world "Impressive". He wasn't aware that he could create such perfection ! Later on in life he started questioning that moment on that glorious day and would ask himself from time to time, " Did I really do that"?
.....I didn't know Thaddy was your father
Quote from: 440bx on January 17, 2022, 12:14:01 am.....I didn't know Thaddy was your father Here, I'll do it for you Thaddy.
I did some more tests and this library, librsvg-2-2, fails with some files. At this point you better use something else, or if you insist try to get a newer version. The one I have is over 10 years old. But again, I don't see the point. Either way when you test the code, try to use a simple svg file.
Compile Project, Target: project1.exe: Exit code 1, Errors: 5project1.lpr(24,1) Error: Undefined symbol: rsvg_initproject1.lpr(24,1) Error: Undefined symbol: rsvg_handle_new_from_fileproject1.lpr(24,1) Error: Undefined symbol: rsvg_handle_get_pixbufproject1.lpr(24,1) Error: Undefined symbol: rsvg_handle_closeproject1.lpr(24,1) Error: Undefined symbol: rsvg_term