gpt4 book ai didi

com.jhlabs.image.WaterFilter.setPhase()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 23:51:05 26 4
gpt4 key购买 nike

本文整理了Java中com.jhlabs.image.WaterFilter.setPhase()方法的一些代码示例,展示了WaterFilter.setPhase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WaterFilter.setPhase()方法的具体详情如下:
包路径:com.jhlabs.image.WaterFilter
类名称:WaterFilter
方法名:setPhase

WaterFilter.setPhase介绍

[英]Set the phase of the ripples.
[中]设置涟漪的相位。

代码示例

代码示例来源:origin: penggle/kaptcha

waterFilter.setPhase(10);
waterFilter.setWavelength(2);

代码示例来源:origin: com.github.penggle/kaptcha

waterFilter.setPhase(10);
waterFilter.setWavelength(2);

代码示例来源:origin: com.github.axet/kaptcha

waterFilter.setPhase(10);
waterFilter.setWavelength(2);

代码示例来源:origin: org.opencms.modules/org.opencms.frontend.templateone.form

water.setAmplitude(m_settings.getFilterAmplitude());
water.setAntialias(true);
water.setPhase(0);
water.setWavelength(m_settings.getFilterWaveLength());

代码示例来源:origin: lbalazscs/Pixelitor

@Override
  public BufferedImage doTransform(BufferedImage src, BufferedImage dest) {
    if (filter == null) {
      filter = new WaterFilter(NAME);
    }

    filter.setCentreX(center.getRelativeX());
    filter.setCentreY(center.getRelativeY());
    filter.setRadius(radius.getValueAsFloat());
    filter.setWavelength(wavelength.getValueAsFloat());
    filter.setAmplitude(amplitude.getValueAsPercentage());
    filter.setPhase(phase.getValueInRadians());
    filter.setEdgeAction(edgeAction.getValue());
    filter.setInterpolation(interpolation.getValue());

    dest = filter.filter(src, dest);
    setAffectedAreaShapes(filter.getAffectedAreaShapes());
    return dest;
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com