Board index » delphi » Saving a TImage's graphic using GDI+

Saving a TImage's graphic using GDI+

Anyone know how to do this?  I'm using the prodigy GDI+ headers/classes.  
I have a TImage who's bitmap I'd like the user to be able to save as a
bmp/jpg/png.  I'm already using some GDI+ capabilities (loading,
drawing), so I figured I'd try to use that to save the graphics as well.  
Is there a way to create a TGPImage from a TBitmap?

GrandmasterB

 

Re:Saving a TImage's graphic using GDI+


you have to create the TGPBitmap class using the handle and the palette from
TBitmap

henri
http://www.progdigy.com

"GrandmasterB" <Thisi...@arealemail.addr> a crit dans le message de news:
MPG.185e9bbad74d759c989...@newsgroups.borland.com...

Quote

> Anyone know how to do this?  I'm using the prodigy GDI+ headers/classes.
> I have a TImage who's bitmap I'd like the user to be able to save as a
> bmp/jpg/png.  I'm already using some GDI+ capabilities (loading,
> drawing), so I figured I'd try to use that to save the graphics as well.
> Is there a way to create a TGPImage from a TBitmap?

> GrandmasterB

Re:Saving a TImage's graphic using GDI+


Doh!  Thanks - I didnt see the TGBitmap class.  Worked like a charm.

Quote
> you have to create the TGPBitmap class using the handle and the palette from
> TBitmap

> henri
> http://www.progdigy.com

> > Anyone know how to do this?  I'm using the prodigy GDI+ headers/classes.
> > I have a TImage who's bitmap I'd like the user to be able to save as a
> > bmp/jpg/png.  I'm already using some GDI+ capabilities (loading,
> > drawing), so I figured I'd try to use that to save the graphics as well.
> > Is there a way to create a TGPImage from a TBitmap?

> > GrandmasterB

Other Threads