Re : HBitmap Addendum

Re : HBitmap Addendum

Post by DPS » Tue, 06 Jun 2000 04:00:00



Hi ,
    This works fine for smaller Bitmaps i create . Sometimes i need to
create a Bitmap 6500 * 4500 pixels . The HBitmap gets created properly and
so do the image . When i assign the handle property of TBitmap to this
HBitmap i get EOutOfResources exception .  Even after this Exception i tried
to save the Bitmap , it saves it fine . How ?? i am not able to understand ,
moreover on this exception i am setting handle to 0 . Is there safe method
to save this HBitmap.

Thanks in advance
Dev

> Creates a TBitmap and set its handle property to the HBitmap and them save
> the TBitmap



> > hi ,
> >    i created a Memory Bitmap - HBitmap  using CreateDIBSection and drew
> some
> > graphics on it . Now i want to save this HBitmap to a BMP file . How can
i
> > achieve this ? Please help me

> > Thanks
> > Dev