Re: Problem saving a bitmap object to a .bmp file in Visual .NET C++



Uzytkownik <makc.the.great@xxxxxxxxx> napisal w wiadomosci
news:1155035860.018875.103900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Leszek L. wrote:
Uzytkownik "Nicholas Sherlock" <N.sherlock@xxxxxxxxx> napisal w
wiadomosci
news:eb0cgp$mkr$1@xxxxxxxxxxxxxxxxxx

MyBitmap->Save("C:\\MyDir\\MyPicture.jpg");

But won't this simply save a bitmap with extension .jpg? It sounds like
you are getting error messages from some programs because they see the
extension '.jpg' and assume that the image IS a jpg, but it is really a
bitmap.

This might be true (I am not sure how to verify it), but anyway
when I used a .bmp extension I got the same problems.


that's probably because you still try to open jpg in the program that
gives you error message.

The program that gives me an error message is Corel PhotoPaint,
and it normally reads both bitmaps and JPGs. I agree it might be
confused by a bitmap-formatted file stored in a file with a *.JPG name,
but it should have no problem if I correctly stored a bitmap as a *.bmp,
or a JPEG as a *.jpg.

Thanks anyway,
Leszek.


.



Relevant Pages