Examples of RandomTextPaster


Examples of com.octo.captcha.component.image.textpaster.RandomTextPaster

    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,
        backgroundGenerator, textPaster);
    WordGenerator wordGenerator = new RandomWordGenerator(acceptedChars);
    factories = new ImageCaptchaFactory[] { new GimpyFactory(wordGenerator,
View Full Code Here

Examples of com.octo.captcha.component.image.textpaster.RandomTextPaster

            backgroundGeneratorList = new ArrayList();  
            fontGeneratorList = new ArrayList();  

            textPasterList.add(new SimpleTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.black));  
            textPasterList.add(new RandomTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.black));  
            textPasterList.add(new SimpleTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.black));  
            textPasterList.add(new RandomTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.black));  
            textPasterList.add(new SimpleTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.blue));  
            textPasterList.add(new RandomTextPaster(MIN_WORD_LENGTH,  
                    MAX_WORD_LENGTH, Color.blue));  

            backgroundGeneratorList.add(new GradientBackgroundGenerator(  
                    IMAGE_WIDTH, IMAGE_HEIGHT, Color.orange, Color.white));  
            backgroundGeneratorList.add(new GradientBackgroundGenerator(  
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.