image中sld显示太小
我做的挡墙自动成图小程序,为啥幻灯片显示的特别小,求解!!!!就是这样子的
本帖最后由 shuangyihu 于 2015-12-13 14:59 编辑E:\QQ图片20151213145324.jpg lisp代码 如下:
(defun show_sld(key sld)
(setq x (dimx_tile key))
(setq y (dimy_tile key))
(start_image key)
(fill_image 0 0 x y -2)
(slide_image 0 0 x y sld)
(end_image)
DCl代码如下:
:image{
key="wall_image";
color=-2;
width=30;
aspect_ratio=2;
// allow_accept = true;
}
求解 lisp代码 如下:
(defun show_sld(key sld)
(setq x (dimx_tile key))
(setq y (dimy_tile key))
(start_image key)
(fill_image 0 0 x y -2)
(slide_image 0 0 x y sld)
(end_image)
DCl代码如下:
:image{
key="wall_image";
color=-2;
width=30;
aspect_ratio=2;
// allow_accept = true;
}
求解 lisp代码 如下:
(defun show_sld(key sld)
(setq x (dimx_tile key))
(setq y (dimy_tile key))
(start_image key)
(fill_image 0 0 x y -2)
(slide_image 0 0 x y sld)
(end_image)
DCl代码如下:
:image{
key="wall_image";
color=-2;
width=30;
aspect_ratio=2;
// allow_accept = true;
}
求解 把sld搞大点,调整屏幕(与对话框显示区比例匹配)来制作sld 因为绘图屏幕普遍是水平长的,建议你将对话框结构由左右变成上下,将幻灯片放在上面,这样可以使得幻灯片比例与DCL中的控件比例比较接近,自动显示较大。
或者你需要调整(slide_image 0 0 x y sld)中起点、终点坐标位置,XY可以比(dimx_tile 或(dimy_tile 得出的值大,类似于放大。但是因为DCLimage控件只支持整数,会有误差偏移。因此调试的工作量会大些。 我也碰到过,跟制作SLD时候,CAD屏幕比例有关,
在制作SLD前,先将CAD屏幕调整成与SLD比例差不多,然后ZOOM , E 缩放,在进行制作就可以了。
页:
[1]