2 Attachment(s)
Load SVG and WEBP (usercontrol)
"BEFORE FOLLOWING READING I MUST CLARIFY THAT THIS REQUIRES Windows 10 Creators Update"
hello I want to publish this old control (ucImage) made by a friend (Cobein) a long time ago (12 years), where he uses GDI + to show a PNG image and all those supported by GDI +, so far nothing new, nowadays it is beginning to be seen with more graphic frequencies of type SVG and maybe WEBP so I asked in another forum (ActiveVB.net) that there were possibilities to read these formats and the user (Master vb) Frank Schüler created beautiful routines using WIC and D2D1SvgDocument, I just joined these codes to use within the control and scan it to GDI +
This control has some things to correct but it works stable.(I didn't feel like updating it)
some SVG images are not read but it is already a problem of D2D1SvgDocument
I need to thank LaVolpe for using many of his routines in this control.
Attachment 175221
Attachment 175223
EDIT1: I just remembered that I removed the reading of images via GDI + and I am using WIC, today I do not want to continue but it is to clarify these lines
Code:
LoadFromStream = CreateFromWICStream(bvData)
Exit Function
'lectura desde wic gdip suspndido para probar
Re: Load SVG and WEBP (usercontrol)
too bad it require "Windows 10 Creators Update"
I have not installed it, but I can read webp, this because I already installed webp decoders, but svg is not working.
a way to load webp/svg without any installation would be preferable, maybe with an include *.dll file.