Board index » delphi » IPicture interface anyonw?

IPicture interface anyonw?

Does any1 know how to implement the IPicture interface?
Let's say i have a bitmap in a Delphi component that i want to share with
the Picture object in VB?

Lennart Berg

 

Re:IPicture interface anyonw?


Yes....

But what do i fill in inside the functions of IPicture??
Any example??? Plz...

Lennart Berg

"Tomaz Koritnik" <tomaz.koritn...@guest.arnes.si> skrev i melding
news:3d8b5b14@newsgroups.borland.com...

Quote
> Hi

>     Create a new class that implements that interface

>     TMyPicture = class( TInterfacedObject, IPicture )
>     private
>         FBitmap: TBitmap; // or TPicture or something else
>     public
>         // here you need to add functions and procedures from IPicture
>     end;

> When you construct TMyImage object you create a picture in the background
> and then on each call to a function from interface you just call the
> appropriate function from FBitmap.

> Tomaz

> "Jon Lennart Berg" <jon...@c2i.net> wrote in message
> news:3d8a7a50@newsgroups.borland.com...
> > Does any1 know how to implement the IPicture interface?
> > Let's say i have a bitmap in a Delphi component that i want to share
with
> > the Picture object in VB?

> > Lennart Berg

Other Threads