当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·重庆大学有两个死于非典    »显示摘要«
    摘要: 重庆的兄弟伙,注意到哟! ......
    摘要: 请问如何保存csdn上的精华帖子,因为csdn的网页,另存为时没有web等的选项,只有xml和xsl。谢谢。 ......


高手救我

Image   image   =   ImageHandler.getImage("bb.jpg",   getClass());  
          t.addImage(image,   0);  
          try   {  
          t.waitForAll();  
          }   catch   (InterruptedException   e)   {  
                  e.printStackTrace();  
          }  
          ImageWriter   imageWriter   =   new   ImageWriter();  
                  emf.add(new   SetStretchBltMode(EMFConstants.COLORONCOLOR));  
                  emf.add(new   StretchDIBits(imageWriter,   bounds,   0,   0,  
                                                          image.getWidth(this),   image.getHeight(this),   image,   this,   Color.black));  
   
  我想请教下在以上一段关于图形提取的程序中emf.add(new   StretchDIBits(imageWriter,   bounds,   0,   0,  
                                                          image.getWidth(this),   image.getHeight(this),   image,   this,   Color.black));这句程序是什么意思??

NO.1   作者: helpall

这句可以分成下列两句,基本意思是先用一系列参数生成一个StretchDIBits对象,再将其放入emf中.  
  StretchDIBits   obj   =   new   StretchDIBits(  
                              imageWriter,  
                              bounds,  
                              0,  
                              0,  
                              image.getWidth(this),  
                              image.getHeight(this),  
                              image,  
                              this,  
                              Color.black);  
  emf.add(obj);


    摘要: 昨天还是好的,也不知道是动了delphi6的哪里,突然我的程序在运行(f9)时,总是一条一条执行汇编指令,在boz(波) 的提示下我在tools -> debug options -> integreted debugging中设了后,可是又不能置断点了,f7 和f8失效。 怎么样在调试时不显示cup窗口,又能设断点! 帮帮小弟吧! 我在线等待,答出马上给分! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE