| View previous topic :: View next topic |
| Author |
Message |
DJ ChunkeeZee Member
Joined: 13 Nov 2003 Posts: 1 Location: UK
|
Posted: 13/11/03 09:48 Post subject: Images and Logo's - urgent help required |
|
|
Hi All,
I require a routing to overlay/alphabland a Transparent GIF onto a JPEG and save as JPEG, the Gif is a Company Logo (transparent) and the JPEG the photo, I need to produce a batch routine to place this logo on all my images.
I am new to graphics programming, any help would be appreciated.
Thanks in advance. |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 307
|
Posted: 18/11/03 11:33 Post subject: |
|
|
| Code: | procedure Watermark(Image: TJPEGImage; X, Y: Integer; Stamp: TGraphic);
var
Bitmap: TBitmap;
begin
Stamp.Transparent := True;
Bitmap := TBitmap.Create;
try
Bitmap.Assign(Image);
Bitmap.Canvas.Draw(X, Y, Stamp);
Image.Assign(Bitmap);
Image.JPEGNeeded;
finally
Bitmap.Free;
end;
end; |
|
|
| Back to top |
|
 |
|