Saving an image
-
Hi, I have a jpg image on a IPicture* interface and I wish to save it to a file. Looking on MSDN it appears that I can use the IPicture::SaveAsFile() method but I don't relly understand what I need to do to get from a filename to being able to call SaveAsFile(). Could anyone please explain, or better still give me a few pointer (sorry for the pun :-D ) to some code frags? Thanks Tony
-
Hi, I have a jpg image on a IPicture* interface and I wish to save it to a file. Looking on MSDN it appears that I can use the IPicture::SaveAsFile() method but I don't relly understand what I need to do to get from a filename to being able to call SaveAsFile(). Could anyone please explain, or better still give me a few pointer (sorry for the pun :-D ) to some code frags? Thanks Tony
I suppose you've to use SHCreateStreamOnFile [^], see, for instance, http://www.ureader.com/msg/1478976.aspx[^] (first reply). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I suppose you've to use SHCreateStreamOnFile [^], see, for instance, http://www.ureader.com/msg/1478976.aspx[^] (first reply). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thanks, That works great! :thumbsup: :thumbsup:
-
Thanks, That works great! :thumbsup: :thumbsup:
You are welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]