![]() |
【转帖】scale Of Raster Image
scale of raster image
scale of raster image i use 1.07 beta. 1. first question. odt return v and u vectors of raster image in compliance with dxf specification ("u-vector of a single pixel "). in another words: image size (in acad units) = length of u/v vector * image size (in pixels). in dd function getorientation return full length of u/v vectors. 2. if raster variable userscale (dxf code - 72) set to "0" during loading dd throw exception (invalid input) on function oddbrasterimage::scale(). is it a bug of dd or it's an incorrect situation? how i can get scale of an image in this case? best regards, ivan obraztsov 1. in dd getorientation() returns full length vectors as in objectarx. 2. crash during loading is a result of dd bug. from objectarx help (scale() function): exception: if no resolution information is available for the image or if the user hasn't specified what one autocad unit means (inch, meter, etc., accessible through acdbrastervariables::userscale()), then the image width is assumed to be one autocad unit for purposes of computing the scale factor. sergey slezkin yes, you are right. it's really incorrect situation. thank you. best regards, ivan obraztsov |
所有的时间均为北京时间。 现在的时间是 03:15 PM. |