Results 1 to 40 of 59

Thread: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

Threaded View

  1. #11
    Frenzied Member
    Join Date
    Jan 2010
    Posts
    1,103

    Re: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

    Quote Originally Posted by LaVolpe View Post
    I am assuming that m_objPicture is declared as StdPicture?
    Good guess.

    1. Class doesn't need to expose dimensions. It's part of m_objPicture: .Width & .Height properties
    We prefer pixels unit.

    2. WMF/EMF/ICO doesn't support ICM. I'm a bit confused there. I have no problems loading those file types.
    - JPG color management. ICM is not supported, but could be added with a little effort.
    I means for my case, I didn't see the graphic with BitBlt or GdiAlphaBlend.

    3. I loaded a single-frame GIF and had no issues.[/CODE]
    Refer my edited #19. I have to use BitBlt.

    [CODE]This project is a quick and easy way to support TIF, PNG, animated GIF using the VB Image control. It is not a mini-version of my AlphaImage control. I am playing with the idea of being able to assign an AlphaImage control image to a VB picture object. But this project is not that
    I know it,Sir.
    We need a better smart Function than GDI+ GdipLoadImageFromFile API which supports more formats BMPs/PNG/TIF/GIF/...

    Something like:
    hImage = Class1.LoadImageFile(FileName) vs GdipLoadImageFromFile StrPtr(sFileName), hImage

    then I can use GDI+ render functions (GdipDrawImage/GdipDrawImageRect/GdipDrawImageRectRectI) to draw hImage on any DC.
    Last edited by Jonney; Dec 7th, 2015 at 09:43 PM.

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