Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Join two Timages by code Posted by brunosan on 10 May 2004 at 3:43 PM
How can I join two Timages by code?

Thanks,

Bruno
Report
Re: Join two Timages by code Posted by zibadian on 10 May 2004 at 11:14 PM
: How can I join two Timages by code?
:
: Thanks,
:
: Bruno
:
If you want to copy one image onto the other, then here's how:
- First adjust the Height and Width
- Then use the Canvas.Draw() to add the new image
If you want to combine the colors of both images to create a new one, I would suggest that you loop through all the pixels and use a mathematical equation to come up with the new image. The OR, AND, or XOR operators are commonly used for this kind of operation.
Report
Re: Join two Timages by code Posted by brunosan on 11 May 2004 at 7:32 AM
: : How can I join two Timages by code?
: :
: : Thanks,
: :
: : Bruno
: :
: If you want to copy one image onto the other, then here's how:
: - First adjust the Height and Width
: - Then use the Canvas.Draw() to add the new image
: If you want to combine the colors of both images to create a new one, I would suggest that you loop through all the pixels and use a mathematical equation to come up with the new image. The OR, AND, or XOR operators are commonly used for this kind of operation.
:

Thanks,
It works fine, but now I need that the second picture to be a little transparent (watermark).
Thanks again,

Bruno






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.