Package com.octo.captcha.component.image.backgroundgenerator

Examples of com.octo.captcha.component.image.backgroundgenerator.FunkyBackgroundGenerator


    int[] greenRange = { 204, 255 };
    int[] blueRange = { 204, 255 };
    int[] alphaRange = { 0, 255 };
    FontGenerator fontGenerator = new TwistedAndShearedRandomFontGenerator(
        fontSize, fontSize);
    BackgroundGenerator backgroundGenerator = new FunkyBackgroundGenerator(
        width, height, new RandomRangeColorGenerator(redRange,
            greenRange, blueRange, alphaRange));
    TextPaster textPaster = new RandomTextPaster(acceptedWordLength,
        acceptedWordLength, textColor);
    WordToImage wordToImage = new ComposedWordToImage(fontGenerator,
View Full Code Here


    water.setPhase(10);
    water.setWavelength(70);

    FontGenerator shearedFont = new RandomFontGenerator(Integer.valueOf(30), Integer.valueOf(35));
    // BackgroundGenerator back = new UniColorBackgroundGenerator(Integer.valueOf(250), Integer.valueOf(150), Color.white);
    BackgroundGenerator back = new FunkyBackgroundGenerator(Integer.valueOf(250), Integer.valueOf(150));
    RandomRangeColorGenerator randomWordColorGenerator = new RandomRangeColorGenerator(new int[] { 10, 30 }, new int[] { 10, 40 }, new int[] { 10, 12 });
    RandomRangeColorGenerator randomBaffleColorGenerator = new RandomRangeColorGenerator(new int[] { 70, 120 }, new int[] { 50, 90 }, new int[] { 90, 150 }, new int[] { 100, 200 });
    TextPaster randomPaster = new DecoratedRandomTextPaster(Integer.valueOf(6), Integer.valueOf(7), randomWordColorGenerator, new TextDecorator[] { new BaffleTextDecorator(Integer.valueOf(1), randomBaffleColorGenerator) });
    ImageDeformation backDef = new ImageDeformationByFilters(new ImageFilter[0]);
    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[0]);
View Full Code Here

TOP

Related Classes of com.octo.captcha.component.image.backgroundgenerator.FunkyBackgroundGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.