Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++?
-
Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!
-
Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!
kapardhi wrote:
but i am uanble to use it??
Why? :)
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] -
kapardhi wrote:
but i am uanble to use it??
Why? :)
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] -
Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!
have a look at [SHLoadImageFile^], [SHLoadImageResource^] this is supported from Windows CE .NET 4.0 and later so you must be able to use in evc++, if you are planning to use higher version (WCE 5.0) try using Imaging API there is a sample in SDK path.
-
CPallini wrote:
Why?
Bcoz i couldnot figure out what he was describing! I think he was explaining two different logics. Can u please explain in short using code snippets what he meant ? Thanks!
He uses
COM
to load the image. You may useMFC
CImage
, instead (if available in embedded VC++). BTW: why don't you ask in theMobile Development
forum [^]? :)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]