NO

Author Topic: New sample available - load & display PNG, JPG, ...  (Read 13105 times)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
New sample available - load & display PNG, JPG, ...
« on: February 14, 2005, 12:30:30 AM »
A new sample is available that demonstrates using IE to load and display images - it works with URL's, so both local files and web images are supported...

http://www.smorgasbordet.com/pellesc/sample_imgctx.htm

Pelle
/Pelle

JohnF

  • Guest
Re: New sample available - load & display PNG, JPG, ...
« Reply #1 on: February 14, 2005, 08:59:44 AM »
Quote from: "Pelle"
A new sample is available that demonstrates using IE to load and display images - it works with URL's, so both local files and web images are supported...

http://www.smorgasbordet.com/pellesc/sample_imgctx.htm

Pelle


That's good, thanks. Information for that interface seems hard to come by, anyone know where to find some info?

John

Greg

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #2 on: February 14, 2005, 09:59:07 PM »
Cool. I was able to load an animated GIF with this method but it is not animated. Anyone know if it's possible to display it animated? There is very little documentation on using IImgCtx that I have been able to find. Secret Microsoft stuff I guess.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
New sample available - load & display PNG, JPG, ...
« Reply #3 on: February 14, 2005, 11:02:36 PM »
Quote from: "Greg"
Cool. I was able to load an animated GIF with this method but it is not animated. Anyone know if it's possible to display it animated?

Seems to be yet another unanswered question about this interface. I have spent several hours trying to find any useful information - with no luck. Yes, very secret indeed... sigh...

Pelle
/Pelle

JohnF

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #4 on: February 14, 2005, 11:14:10 PM »
Quote from: "Pelle"
Quote from: "Greg"
Cool. I was able to load an animated GIF with this method but it is not animated. Anyone know if it's possible to display it animated?

Seems to be yet another unanswered question about this interface. I have spent several hours trying to find any useful information - with no luck. Yes, very secret indeed... sigh...

Pelle


I've searched as well. I read somewhere that it is in the I.E. SDK but can't find that either.

John

larry

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #5 on: February 15, 2005, 08:35:56 PM »
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

look in the tree on hte left for internet development sdk... maybe?

LAr.

JohnF

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #6 on: February 16, 2005, 07:09:52 AM »
Quote from: "larry"
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

look in the tree on hte left for internet development sdk... maybe?

LAr.


Unfortunately that's not it.

John

TBD

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #7 on: February 16, 2005, 08:35:21 AM »
JohnF: what info do you need ?

JohnF

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #8 on: February 16, 2005, 09:17:31 AM »
Quote from: "TBD"
JohnF: what info do you need ?


Well, first off I would like to know if IImgCtx can be used as non-asynchronous when loading an image.

IImgCtx_Load(This,pszUrl,dwFlags)

What values can dwFlags have and what is the meaning of each.

John

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
New sample available - load & display PNG, JPG, ...
« Reply #9 on: February 16, 2005, 03:28:06 PM »
DWN_MIRRORIMAGE, DWN_DOWNLOADONLY gives quick visual feedback with IImgCtx_Load - so they sure work.

IMGANIM_ANIMATED seems to be returned from IImgCtx_GetStateInfo for animated GIF's - but not for 'static' images. Just not sure what to do with it.

More info about the callback function would also be nice (what the heck is the first argument?)...

Pelle
/Pelle

JohnF

  • Guest
New sample available - load & display PNG, JPG, ...
« Reply #10 on: February 16, 2005, 05:19:37 PM »
Quote from: "Pelle"
DWN_MIRRORIMAGE, DWN_DOWNLOADONLY gives quick visual feedback with IImgCtx_Load - so they sure work.

IMGANIM_ANIMATED seems to be returned from IImgCtx_GetStateInfo for animated GIF's - but not for 'static' images. Just not sure what to do with it.

More info about the callback function would also be nice (what the heck is the first argument?)...

Pelle


I guess it can only be used as an asynchronous loader.

For my situation, (FindFile) it does not work as smoothly as the IPicture interface. Unfortunately IPicture does not load PNG's.

John