kabeja库dxf2rng、jpg等图片大小设置

默认的分辨率是400*400,如何改变jpg、png等图片格式的分辨率?

官方论坛提供的解释:
first sorry for the delay. You can edit the process.xml in the “conf” folder. Just open the file and search for the pipeline (name=“jpeg”) there you can change the “width” and “height” property to your values (px,mm,pt). You can add the property “dpi”
to get the right result.
If you use Kabeja in Java you have to use the setProperty(Map) method, your values you have to setup in the Map.

如果您在Java中使用Kabeja,则必须使用setProperty(Map)方法,您必须在Map中设置您的值。

代码实例:

SAXSerializer out =new SAXPNGSerializer();
	     Map m=new HashMap();
	     m.put("width", "1500");
	     m.put("height", "1500");
	     out.setProperties(m);

如果有其他问题的话可以访问SourceForge,https://sourceforge.net/p/kabeja/discussion/510352/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值