Class RenderUtil
java.lang.Object
com.mrbysco.captcha.client.screen.text.RenderUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.renderer.texture.DynamicTexturegenerateCaptchaTexture(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.
-
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
-