TBitmap::SaveToFile creates modified image

Please do not post attachments to these newsgroups as that goes agaisnt the
newsgroup guidelines.  You post has been canceled.

Quote
Dima Vukolov wrote:

> Hi!
> I have a problem saving TBitmap object with SaveToFile().
> Drawing my TBitmap displays the image right. But when I save it using
> SaveToFile() it creates a very strange .bmp file. It looks like the image
> was split into to parts which changed their positions with each other.
> Besides the colors of the image are changed (see attachments).
> If it may help I actially get this TBitmap by reading from a Paradox
> database using BDE.
> Here is what i do:

> Graphics::TBitmap *Bitmap = new Graphics::TBitmap();
> Bitmap->Assign(Table1->FieldByName("Picture"));
> Bitmap->SaveToFile("file.bmp");
> delete Bitmap;

> Thanks!

>                 Name: Image.bmp
>    Image.bmp    Type: Bitmap Image (image/bmp)
>             Encoding: x-uuencode

>                 Name: saved.bmp
>    saved.bmp    Type: Bitmap Image (image/bmp)
>             Encoding: x-uuencode

--
Jeff Overcash (TeamB)
      (Please do not email me directly unless  asked. Thank You)
The mist crawls from the c{*word*7}like some primordial phantom of romance
To curl, under the cascade of neon pollen.  While I sit tied to the phone
like some expectant father, your carnation will rot in a vase.
             (Fish)
--