posts - 0, comments - 77, trackbacks - 0, articles - 356
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

输出jpg是来自TImage控件的图形

Posted on 2007-04-22 17:46 semovy 阅读(394) 评论(1)  编辑  收藏 所属分类: C++ Builder相关
      

       Graphics::TBitmap *bmp = new Graphics::TBitmap;
        bmp->Width = (int)newWidth;
        bmp->Height = (int)newHeight;
        bmp->Canvas->StretchDraw(Rect(0,0,bmp->Width,bmp->Height),Image1->Picture->Graphic);
        TJPEGImage *MyJPEG = new TJPEGImage;
        MyJPEG->Assign(bmp);
        MyJPEG->SaveToFile("c:\\newbmp.jpg");
        delete MyJPEG;
        delete bmp;

评论

# re: 输出jpg是来自TImage控件的图形  回复  更多评论   

2007-06-11 20:15 by semovy
不错,再接再励

只有注册用户登录后才能发表评论。


网站导航: