Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Reflection

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Hi guys,

I have a TImage on a form which displays images at specified intervals. I am trying to get a transparent reflection working like in this image: http://users.tpg.com.au/jakeadam//prototype1.jpg

What I am doing is getting the image in the first TImage, assigning it to a bitmap, rotating it, then assigning it to the second TImage.
Code:
var
  Bitmap : TBitmap;
begin
  Bitmap := TBitmap.Create;

  Bitmap.Assign(imageTop.Picture.Graphic);
  RotateImg(Bitmap);
  ImageBottom.Picture.Assign(Bitmap);
  Bitmap.Free;

I am having trouble getting the transparency in the reflection. Anyone got an ideas on how to do this?

Thanks,
Adam
 
Thanks for the reply, but I have the rotating part sorted. It is just the transparency part which is the problem.

I've just done an alpha blend with a light grey bitmap which seems alright, so I think that I am on the right path.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top