Delphi TPicture 和 TBitmap 的相互转换


本文整理自网络,侵删。

  

TPicture 转 TBitmap

TempBmp.width:=100;
TempBmp.height:=100;
TempBmp.canvas.Draw(0,0,m_PicMouseOn.Graphic);//PicMouseOnj是TPictrue类型;

TBitmap转 TPicture 

PicMouseOnj.Pictrue.Graphic:=TempBmp;//TempBmp是TBitmap类型

相关阅读 >>

decodedatetime:将一个tdatetime变量拆分成它的日期/时间 部分

Delphi win10系统通知 notificationcenter1 基本用法

md5.pas

Delphi xe5的新功能“ tlistview内置搜索过滤”

Delphi查找同一内网所有主机

Delphi rgbtohsb

Delphi 2009 之 tstringbuilder 类[4]: insert 与 remove

Delphi异常处理try except语句和try finally语句用法以及区别

Delphi xe ioutils 单元(1): 初识 tdirectory.getfiles

Delphi线程简单创建、挂起、激活与终止

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...