?
Solved

delphi image brint to front

Posted on 2007-08-10
8
Medium Priority
?
1,586 Views
Last Modified: 2008-02-23
Is it possible to have the Timage infront of a PANEL ?
whenever I put the panel and an image, the panel is in front of the image.
0
Comment
Question by:yarek
8 Comments
 
LVL 10

Expert Comment

by:dinilud
ID: 19674891
No you can't.

Because TImage derived from TGraphicControl while TPanel from TCustomControl.
0
 
LVL 10

Expert Comment

by:dinilud
ID: 19674935
Check this page. From this page you can download some Components, that will support BringTofront function

http://www.delphipages.com/news/detaildocs.cfm?ID=39
0
 
LVL 19

Expert Comment

by:MerijnB
ID: 19675082
you can use a TImage32 (from the Graphics32 project) instead of TImage: http://www.graphics32.org/wiki/
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:dinilud
ID: 19675099
MerijnB is right. We can use any Component which is derivied from TWinControl can use to solve your problem.
0
 
LVL 28

Expert Comment

by:TName
ID: 19675385
yarek, I don't know what exactly you are trying to do, but for most purposes an easy solution would be to simply put the image on another panel (with exactly the same dimensions as the image - so that the image covers it up completely) and position this second panel (the image's parent) in front of the other panel.
0
 
LVL 28

Expert Comment

by:TName
ID: 19675399
So if e.g. the image is located on Panel2, fully covering it, and Panel1 is in front of them, then if you say
   Panel2.BringToFront;
it will look like the image is coming to the front of Panel1.  Well it really is, with some help though.
0
 

Author Comment

by:yarek
ID: 19675405
My project is:
put a webcam image into an OVAL mask picture (Like taking a snapshot webcam picture into a head shape oval).
Sorry for my poor explanation and my poor english:
I want people to make webcam snapshots of their FACE: so I need to put an OVAL mark so they put their head inside:
- It can be overlayed (over the webcam image) : trouble is the webcam is always ON TOP of the image !
- or the webcam image can be Oval shaped: I do not know how to do it !

I tried Graphics32 but i never get a transparent image neither
In both cases I am STUCK...
Any Idea on how to achieve this ?
0
 
LVL 10

Accepted Solution

by:
dinilud earned 1500 total points
ID: 19675684
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question