标题: 关于缩放的问题
SageZhouXin
会员
Rank: 1



UID 1761
精华 0
积分 15
帖子 1
阅读权限 5
注册 2009-1-3
 
发表于 2011-10-22 19:34  资料  短消息  加为好友 
关于缩放的问题

[layopt layer=1 page=back zoom=162 visible=true left=-320 top=100 type=stNearest]
[trans method=crossfade time=500][wt canskip=false]

这段只要用 type=stNearest 就会报错...说是"脚本中发生例外.本类型的层无法进行描绘,读取图像以及图像的缩放/移动/获取信息."

改成 type=stLinear 或者 stFastLinear 或者 stCubic 什么的都没事, 不写也没事(但是默认Linear)

可是我想用邻近补间啊。。。



顺便问问除了layopt有没有其他方法放大图像,layer里可不可以直接调?

或者tjs的方法也行。。。


非常感谢



--------------------------------------------------------------
以无比傻缺的方式搞定了

[macro name=sfizoom500a2]
[image storage=%s page=back layer=0 visible=true left=0 top=0 opacity=255]
[trans method=crossfade time=0][wt canskip=false]
[image storage=%s page=back layer=0 visible=false left=0 top=0 opacity=255]
[trans method=crossfade time=0][wt canskip=false]
[image storage=blank page=back layer=%l visible=true left=0 top=0 width=1280 height=800]
[eval exp="kag.back.layers[mp.l].operateStretch(mp.x, 0, 1920, 800, kag.back.layers[0], 480, 130, 960, 400, omAuto, 255, stNearest)"]
[trans method=crossfade time=500][wt]
[endmacro]

[ 本帖最后由 SageZhouXin 于 2011-10-29 19:32 编辑 ]

顶部
 



清除 Cookies - 联系我们 - [Key Fans Club] the Council of Doujin-game Development and Promotion - Archiver - WAP
Powered by Discuz! 5.5.0 © 2001-2006 Comsenz Inc.
Processed in 0.020829 second(s), 9 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示