How to get the Movie background Color ???

F-IN-BOX for Delphi / Builder C++ / VCL
Guest

How to get the Movie background Color ???

Postby Guest » Sat Mar 19, 2005 12:06 pm

Hi there,
Does anyone know how to get the Movie Background color and CONVERT IT TO TCOLOR ....

it looks like the control returns an integer but it is not the same as TCOLOR...

Thanks.

Guest

Postby Guest » Thu May 19, 2005 5:47 pm

I am asking the same.

Please tell us how to make the movie background transparent in delphi without affecting movie inside.

onad
Posts: 22
Joined: Wed Aug 17, 2005 2:49 pm
Location: Turkey
Contact:

Postby onad » Tue Oct 25, 2005 6:04 pm

See the new updated control, supports transparancy.
"Just do it"

Pete
Posts: 16
Joined: Fri Sep 30, 2005 10:54 am

Postby Pete » Wed Oct 26, 2005 2:07 pm

The following will convert between Flash and delphi colours.


function FlashToTColor(const FColor:dword):TColor;
var
r, g, b:byte;
begin
R := (FColor and $00FF0000) shr 16;
G := (FColor and $0000FF00) shr 8;
B := FColor and $000000FF;
result:=RGB(r,g,b);
end;

function TColorToFlash(const AColor:TColor):integer;
var
r, g, b:integer;
begin
result:=$000000;
result:=result or(AColor and $00FF0000) shr 16;
result:=result or(AColor and $0000FF00) ;
result:=result or(AColor and $000000FF) shl 16;
end;

Hope this helps

Pete

onad
Posts: 22
Joined: Wed Aug 17, 2005 2:49 pm
Location: Turkey
Contact:

Postby onad » Tue Nov 01, 2005 4:58 pm

Pete, your great again... thanks.
"Just do it"


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 15 guests

cron