Results 1 to 2 of 2

Thread: Load SVG and WEBP (usercontrol)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    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.

    Name:  Sin título.jpg
Views: 718
Size:  30.0 KB


    ucImage con SVG y WEBP.zip

    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
    Last edited by LeandroA; Mar 9th, 2020 at 05:23 PM.
    leandroascierto.com Visual Basic 6 projects

  2. #2
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,014

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width