views:

210

answers:

3

Does anyone have an example of how to do some masking with Delphi TImage so I can have one image put on another?

Using 2009

+3  A: 

Look at http://graphics32.org/ it can be a good start.

Francis Lee
that does not work with Delphi 2009
Jim Moore
@Jim: Actually it does; see the FAQ at http://graphics32.org/wiki/Main/Applications, the description on what Graphics32 is about: http://graphics32.org/wiki/Main/Graphics32 and the project's page on SourceForge: http://sourceforge.net/projects/graphics32/files/graphics32/
Jeroen Pluimers
Jeroen Pluimers
+16  A: 
RRUZ
Good example and an easy method, not sure what speed is like, but in most circumstances that wont matter. +1 :-)
Reallyethical
not a good example hard to follow and why would i want 3 images i want one on another.
Jim Moore
If you just want a shape on top then skip a stage, I suggest that you try the example from start to finish. If you have any questions then ask us. RE
Reallyethical
You asked for masking, you got an example for masking. I guess many people (including me) will rate it a good example. You should consider recalibrating your expectations!
Uwe Raabe
@Jim this example uses only 2 images, the third image is the final result. the sourcedode included in the page (http://www.delphiforfun.org/programs/Download/MaskDrawSource.zip) is very easy to understand.
RRUZ
none of these are any good can someone give me a better example?
Jim Moore
Explain your problem you have with this answer in greater detail. We don't read minds.
Robert Love
@Jim: please define 'good'.
Jeroen Pluimers
and also define 'better"...
Uwe Raabe
fine not easy but have tick as works but lot of hasstle
Jim Moore
"lot of hassle" - welcome to programming!
mj2008
+1  A: 

A good location to have for delphi graphics is efg's Computer Lab. Specifically to your question, there is a project Cursor Overlay which starts with cursors, but the concept is there to do what you are asking.

skamradt