java命名空间javax.imageio类iioparam的类成员方法:
controller定义及介绍
本文导语:
controller
protected iioparamcontroller controller
调用 activatecontroller 方法时,将用来为此 iioparam 对象提供设置值的 iioparamcontroller。此值重写任何默认控制器,即使为 null 时也是如此。
另请参见:iioparamcontroller,
setcontroller(iioparamcontrol...
protected iioparamcontroller controller
- 调用
activatecontroller
iis7站长之家时,将用来为此 iioparam 对象提供设置值的 iioparamcontroller。此值重写任何默认控制器,即使为 null 时也是如此。
- 另请参见:
iioparamcontroller,
setcontroller(iioparamcontroller),
hascontroller(),
activatecontroller()
iioparam
protected iioparam()
- 受保护的构造方法,只能由子类调用。
setsourceregion
public void setsourceregion(rectangle sourceregion)
- 设置感兴趣的源区域。感兴趣的区域被描述为一个矩形,源图像左上角为像素 (0, 0),该值向下向右递增。所使用的实际像素数将取决于由
setsourcesubsampling 设置的二次取样因子。如果已经在二次取样中将此像素数设置为零,则将抛出 illegalstateexception。
将根据需要限制此方法指定的感兴趣的源区域,使其适合源区域边界,以及在实际 i/o 时符合目标偏移量、宽度和高度。
sourceregion 值为 null 表示将取消所有区域限制,这将导致使用整个图像。
- 参数:
sourceregion - 指定感兴趣的源区域的 rectangle;或为 null。
- 抛出:
illegalargumentexception - 如果 sourceregion 不为 null 且 sourceregion.x 或 sourceregion.y 为负。
illegalargumentexception - 如果 sourceregion 不为 null 且 sourceregion.width 或 sourceregion.height 为负数或 0。
illegalstateexception - 如果二次取样将使此区域有一个为零的二次取样宽度或高度。- 另请参见:
getsourceregion(),
setsourcesubsampling(int, int, int, int),
setdestinationoffset(java.awt.point),
getdestinationoffset()