image1.loadfromfile(file1.jpg)
image2.loadfromfile1file2.bmp)如何将file1.jpg和file2.bmp的图象内容合成为一个jpg或者bmp图file3.jpg储存.
image3.loadfromfile1file3.bmp)
(格式无所谓,,大小亦不管.关键先合成)
请教大家,谢谢?
image2.loadfromfile1file2.bmp)如何将file1.jpg和file2.bmp的图象内容合成为一个jpg或者bmp图file3.jpg储存.
image3.loadfromfile1file3.bmp)
(格式无所谓,,大小亦不管.关键先合成)
请教大家,谢谢?
解决方案 »
- SQL Server2000 dateadd() 参数遇到的问题.
- delphi savediglog多次保存问题
- 拜托 各位帮帮忙!
- 日历控件怎么使用?还有.....
- 500~高分求够~企业开发报表应用~推崇一个控件
- delphi DataBase.params 中的问题
- 什么是pascal类的字符串?什么是以NULL结尾的字符串?
- 我叫小草,我是lastlove 和Kylix的朋友,我以后要跟你们混,今天第一次来,希望大家记住我,我以后会给大家出难题的·
- 一个难题!
- 程序中途退出用何函数
- application.messagebox运行的时候,系统就停在messagebox,不执行我的程序了。。
- 单击鼠标左键消息
Bm:TBitmap;
begin
//加载
Image1.Picture.LoadFromFile('C:\1.bmp');
Image2.Picture.LoadFromFile('C:\2.bmp');
Try
Bm:=TBitmap.Create;
if image1.Picture.Height>=image2.Picture.Height then
Bm.Height:=image1.Picture.Height
else
Bm.Height:=image2.Picture.Height;
Bm.Width:=image1.Picture.Width+image2.Picture.Width;
//左右排列
Bm.Canvas.CopyRect(Rect(0,0,Image1.picture.width,Image1.Picture.Height),Image1.Canvas,Rect(0,0,Image1.picture.width,Image1.picture.height));
Bm.Canvas.CopyRect(Rect(Image1.picture.width,0,Bm.Width,Bm.Height),Image2.Canvas,Rect(0,0,Image2.picture.width,Image2.picture.height));
//存储
Bm.SaveToFile('C:\3.bmp');
finally
Bm.Free;
end;
end;
1.方法1
我开始用cavas.draw发现设置了image.stretch=true都不能拉伸.
就用cavas.stretchdraw实现的.
2.方法2
copyrect
3.方法3
bit****copy
4.不知道还有没有
而且jpg要转化一下注意
谢谢大家关注