几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】image clipping (http://www.dimcax.com/hust/showthread.php?t=16840)

yang686526 2009-05-06 03:39 PM

【转帖】image clipping
 
image clipping
image clipping
hi,
i'm trying to clip raster images in dwgdirect 1.3. i do everything like in the examples atached to the library, but the size of the image is wrong.
my code related with clipping is similar to this:
code:
odgepoint2darray pts;
pts.push_back(odgepoint2d(0, 0));
pts.push_back(odgepoint2d(xx,yy));
pdbraster->setclipboundary(pts);
pdbraster->setdisplayopt(oddbrasterimage::kclip, true);
pdbraster->setclipped(true);
when i add a clip boundary, added poins are probably recalculated by the library, but the new values are different from mine and wrong. is this related with the image orientation ?
thanks for help

i can't reproduce any problems with this.
please note that pts are in pixels, not in ocs.
sincerely yours,
george udov


所有的时间均为北京时间。 现在的时间是 02:26 PM.