Board index » delphi » ico, emf or wmf TO bmp

ico, emf or wmf TO bmp

Hi,

Is there a way to convert dynamically and to it move to TPicture.Bitmap if
the graphic is either ico, emf or wmf?

Thanks
Noble

 

Re:ico, emf or wmf TO bmp


"Noble DS Edward" <noble.edw...@ecubix.com> wrote in message
news:3af9daac$1_2@dnews...

Quote
> Is there a way to convert dynamically and to it move to TPicture.Bitmap if
> the graphic is either ico, emf or wmf?

In general, you create a TBitmap and then draw the ico, emf, or wmf on
the TBitmap.Canvas.

Look in the "Conversions" section on this page for links and examples:
http://homepages.borland.com/efg2lab/Library/Delphi/Graphics/BMP.htm

--
efg     e...@efg2.com     Earl F. Glynn, Overland Park, KS  USA

efg's Computer Lab:  http://www.efg2.com/Lab
Mirror:  http://homepages.borland.com/efg2lab/Default.htm

Re:ico, emf or wmf TO bmp


Thanks efg

"Noble DS Edward" <noble.edw...@ecubix.com> wrote in message
news:3af9daac$1_2@dnews...

Quote
> Hi,

> Is there a way to convert dynamically and to it move to TPicture.Bitmap if
> the graphic is either ico, emf or wmf?

> Thanks
> Noble

Re:ico, emf or wmf TO bmp


Briefly, use a second TPicture to load the file, then

TargetPicture.Bitmap.Assign(SourcePicture.Graphic);

- D
http://www.techvette.com/ - Delphi and Corvette resources

"Noble DS Edward" <noble.edw...@ecubix.com> wrote in message
news:3af9daac$1_2@dnews...

Quote
> Hi,

> Is there a way to convert dynamically and to it move to TPicture.Bitmap if
> the graphic is either ico, emf or wmf?

> Thanks
> Noble

Other Threads