高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|