Posted on 2006-07-23 15:35
semovy 阅读(775)
评论(0) 编辑 收藏 所属分类:
C++ Builder相关
//改为:#include <jpeg.hpp>
Graphics::TBitmap *b= new Graphics::TBitmap();
TJPEGImage *j=new TJPEGImage();
j->JPEGNeeded();
if(OpenDialog1->Execute())
j->LoadFromFile(OpenDialog1->FileName);
b->Assign(j);
if(SaveDialog1->Execute())
b->SaveToFile(SaveDialog1->FileName);
delete b;
delete j;