Class RenderUtil

java.lang.Object
com.mrbysco.captcha.client.screen.text.RenderUtil

public class RenderUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.renderer.texture.DynamicTexture
    generateCaptchaTexture(String str, int width, int height)
    Generate a DynamicTexture that is a 200x40 image of the given string on a white background but the text is distorted similar to a text captcha.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RenderUtil

      public RenderUtil()
  • Method Details

    • generateCaptchaTexture

      public static net.minecraft.client.renderer.texture.DynamicTexture generateCaptchaTexture(String str, int width, int height) throws IOException
      Generate a DynamicTexture that is a 200x40 image of the given string on a white background but the text is distorted similar to a text captcha. return DynamicTexture
      Throws:
      IOException