is is posible to store GIF as resource?
-
that is - to get picture without writing into the file. But- To get as file or as picture. thanks.
If you store the picture as a binary resource, then use the appropriate GIF loading mechanism on the binary resource, you should be able to obtain a HBITMAP that'll let you display the pic. Have no idea where to get the code to load the GIF file though, someone did give it to me years ago, but not sure where they got it from :) Alan.
-
that is - to get picture without writing into the file. But- To get as file or as picture. thanks.
-
CMemFile -good Idea. Need comments how they are used by file name. ____________ Especially need to sabe - differently formatted files- but not only pictures in most expensive form.
-
CMemFile is the CFile-derived class But supports memory files . if you want particular content, press "CMemFile" in the index cote of MSDN. the article is detailed in msdn. dupengfei
-
CMemFile fMem; LPBYTE lpByte = fMem.Detach(); after create the memory file , you can use this function "Detch" to get the pointer to file. then operator it with pointer freely. dupengfei
Also, make sure you are aware of the legal patenting laws that surround Lempel Ziv Welch (LZW) compression technique used in GIF, which supposedly expired on June 19 2003, whether they have renewed it I'm not sure, but just a thought if your doing this for a company or something :). Check this link out for further info http://msdn.microsoft.com/msdnmag/issues/02/03/c/ Alan.
-
Also, make sure you are aware of the legal patenting laws that surround Lempel Ziv Welch (LZW) compression technique used in GIF, which supposedly expired on June 19 2003, whether they have renewed it I'm not sure, but just a thought if your doing this for a company or something :). Check this link out for further info http://msdn.microsoft.com/msdnmag/issues/02/03/c/ Alan.
If you check out CxImage Library here on this site there http://www.codeproject.com/bitmap/cximage.asp There is an example of this in the demo. Like Dangleberry said, outside the US, GIF is subject to patents until the middle of 2004.