function Tdmd.Draw_Image_In_Rect(C:TCanvas;R:TRect;i:integer):boolean;
var
  tr:TRect;
begin
    if i<ML.Count then
    begin
      if tempImage=nil then tempImage:=TBitMap.Create;
      ML.GetBitmap(i,tempimage);
      tr.Top:=R.Top+(((R.Bottom-R.Top)-24) div 2)+1;
      tr.Left:=R.Left+(((R.Right-R.Left)-24) div 2+1);
      tr.Right:=tr.Left+23;
      tr.Bottom:=tr.Top+23;
      C.CopyRect(TR,tempimage.Canvas,rect(0,0,24,24));
      result:=true;
    end else result:=false;
end ;

图像复制方式:

TCopyMode values describe how to combine the colors of a source bitmap and a destination bitmap.

The Windows unit defines the following constants for TCopyMode values:

Value 
Meaning 
Fills the destination rectangle on the canvas with black.  
Inverts the image on the canvas and ignores the source.  
Combines the image on the canvas and the source bitmap by using the Boolean AND operator.  
Combines the inverted source bitmap with the image on the canvas by using the Boolean OR operator.  
Copies the inverted source bitmap to the canvas.  
Combines the image on the canvas and the source bitmap by using the Boolean OR operator, and inverts the result.  
Copies the source pattern to the canvas.  
Combines the source pattern with the image on the canvas using the Boolean XOR operator  
Combines the inverted source bitmap with the source pattern by using the Boolean OR operator. Combines the result of this operation with the image on the canvas by using the Boolean OR operator.  
Combines the image on the canvas and source bitmap by using the Boolean AND operator.  
Copies the source bitmap to the canvas.  
Inverts the image on the canvas and combines the result with the source bitmap by using the Boolean AND operator.  
Combines the image on the canvas and the source bitmap by using the Boolean XOR operator.  
Combines the image on the canvas and the source bitmap by using the Boolean OR operator.  
Fills the destination rectangle on the canvas with white.  

http://blog.sina.com.cn/s/blog_56294d0a0100tnsd.html

最新文章

  1. ssl证书生成:cer&amp;jks文件生成摘录
  2. [android]亲自破解Flappy Bird(去广告+永生)
  3. 列表list
  4. Sharepoint学习笔记—习题系列--70-573习题解析 -(Q63-Q65)
  5. [SAP ABAP开发技术总结]将文件存储到数据库表中,并可发送邮件
  6. preventDefault()方法
  7. Secondary IP Addressing
  8. Eclipse插件checkstyle 代码风格的检查
  9. rm排除指定文件或指定文件夹下文件
  10. DataGridView 改变行列颜色
  11. ceph之纠删码
  12. Facebook开源的基于SQL的操作系统检测和监控框架:osquery daemon详解
  13. Jenkins+Gradle实现android开发持续集成、打包
  14. Fiddler实现手机抓包——小白入门
  15. 序列对象(bytearray, bytes,list, str, tuple)
  16. ansible基础-ansible角色的使用
  17. DAX/PowerBI系列 - 库存总价值(Inventory Value)
  18. HTML5的表单所有type类型
  19. Java 通过先序中序序列生成二叉树
  20. redis的备份恢复

热门文章

  1. nth-child与nth-of-type
  2. 看看是不是你想要的:pycharm永久激活!!!
  3. setTimeout里的函数是何时进入任务队列里的
  4. jeesuite分布式框架环境搭建
  5. gcc/g++ 的参数总结(二)
  6. Qt实用技巧:界面切换使用Dialog全屏切换
  7. ASP.NET Core &amp; Docker &amp; Jenkins 零基础持续集成实战
  8. JScript实现将指定目录下的vc工程加到解决方案
  9. Android 异步更新UI----handler+thread
  10. 你不从地址栏中增加曝光量所需的数据库ID方法