how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++?
-
Hai ! I have an byte array of an image. I donot know whether the image is an .bmp or .jpg or .jp2 image. I want to convert this byte array into Bitmap byte array i.e I want to convert (.bmp or .jpg or .jp2) image to .bmp image? Thanks!
kapardhi wrote:
I donot know whether the image is an .bmp or .jpg or .jp2 image.
Maybe you don't know the image format at all. How are we supposed to know it, instead? You may try to interpretate your image data as RGB (or greyscale) components. :rolleyes:
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 ! I have an byte array of an image. I donot know whether the image is an .bmp or .jpg or .jp2 image. I want to convert this byte array into Bitmap byte array i.e I want to convert (.bmp or .jpg or .jp2) image to .bmp image? Thanks!
For convert formats you can use of CImage class I dont think you can use of it for jp2 but you can find good article on the codeproject for helpful info about image formats search for CXImage article (of course you dont need to convert bmp to bmp ;) ).
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
kapardhi wrote:
I donot know whether the image is an .bmp or .jpg or .jp2 image.
Maybe you don't know the image format at all. How are we supposed to know it, instead? You may try to interpretate your image data as RGB (or greyscale) components. :rolleyes:
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 think your answer was perfect because you got 1 if it was wrong you got 5. :)
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
I think your answer was perfect because you got 1 if it was wrong you got 5. :)
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
Thank you for balancing, pal. :-D He continues posting again and again, without recognizing what is the actual hurdle: he know nothing about the content of 'the byte array'. :)
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] -
Thank you for balancing, pal. :-D He continues posting again and again, without recognizing what is the actual hurdle: he know nothing about the content of 'the byte array'. :)
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]