MCPcopy Create free account

hub / github.com/botaruibo/xvcode / functions

Functions72 in github.com/botaruibo/xvcode

↓ 42 callersMethodnum
generator random number between <code>min</code> and <code>max</code>. including <code>min</code> but not <code>max</code> @param min @param max @ret
src/com/github/botaruibo/xvcode/generator/XRandoms.java:18
↓ 8 callersMethodwriteShort
Write 16-bit value to output stream, LSB first
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:467
↓ 5 callersMethodalphas
generate the random validation strings @return
src/com/github/botaruibo/xvcode/generator/Generator.java:27
↓ 5 callersMethodoutput
(int code, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:245
↓ 4 callersMethodcolor
pick color from a random range @return Color random color
src/com/github/botaruibo/xvcode/generator/Generator.java:73
↓ 4 callersMethodsetFont
(Font font)
src/com/github/botaruibo/xvcode/generator/Generator.java:40
↓ 4 callersMethodtext
get random validation code string as lower case @return validation code
src/com/github/botaruibo/xvcode/generator/Generator.java:101
↓ 4 callersMethodwrite2out
(OutputStream os)
src/com/github/botaruibo/xvcode/generator/PngVCGenerator.java:74
↓ 3 callersMethodMAXCODE
(int n_bits)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:227
↓ 3 callersMethodaddFrame
Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be insert
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:119
↓ 3 callersMethodfinish
Flushes any pending data and closes output file. If writing to an OutputStream, the stream is not closed.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:158
↓ 3 callersMethodsetDelay
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added). @param ms int delay time in mil
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:61
↓ 3 callersMethodsetQuality
Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produ
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:210
↓ 3 callersMethodsetRepeat
Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is ad
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:88
↓ 3 callersMethodstart
Initiates GIF file creation on the given stream. The stream is not closed automatically. @param os OutputStream on which GIF images are wr
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:245
↓ 2 callersMethodchar_out
(byte c, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:113
↓ 2 callersMethodcl_hash
(int hsize)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:131
↓ 2 callersMethodflush_char
(OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:219
↓ 2 callersMethodgetAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:119
↓ 2 callersMethodgetHeight
()
src/com/github/botaruibo/xvcode/generator/Generator.java:60
↓ 2 callersMethodgetWidth
()
src/com/github/botaruibo/xvcode/generator/Generator.java:52
↓ 2 callersMethodnextPixel
()
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:234
↓ 2 callersMethodwritePalette
Writes color table
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:447
↓ 2 callersMethodwriteString
Writes string to output stream
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:475
↓ 1 callersMethodalpha
()
src/com/github/botaruibo/xvcode/generator/XRandoms.java:31
↓ 1 callersMethodalterneigh
(int rad, int i, int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:387
↓ 1 callersMethodaltersingle
(int alpha, int i, int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:429
↓ 1 callersMethodanalyzePixels
Analyzes image colors and creates color map.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:281
↓ 1 callersMethodcl_block
(OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:122
↓ 1 callersMethodcolorMap
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:135
↓ 1 callersMethodcompress
(int init_bits, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:136
↓ 1 callersMethodcontest
(int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:441
↓ 1 callersMethodencode
(OutputStream os)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:207
↓ 1 callersMethodfindClosest
Returns index of palette color closest to c
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:316
↓ 1 callersMethodgetAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:146
↓ 1 callersMethodgetAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:146
↓ 1 callersMethodgetImagePixels
Extracts image pixels into byte array "pixels"
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:343
↓ 1 callersMethodgetValidCodeImage
draw one frame for the GIF image @param fontcolor font color @param strs validation string @param flag @return
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:88
↓ 1 callersMethodgetValidCodeImage
draw one frame for the GIF image @param fontcolor font color @param strs validation string @param flag @return
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:109
↓ 1 callersMethodgetValidCodeImage
draw random validation code image @param strs the random validation code @return BufferedImage with validation code
src/com/github/botaruibo/xvcode/generator/PngVCGenerator.java:95
↓ 1 callersMethodgetValidCodeImage
draw one frame for the GIF image @param fontcolor font color @param strs validation string @param flag @return
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:108
↓ 1 callersMethodinxbuild
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:156
↓ 1 callersMethodlearn
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:210
↓ 1 callersMethodmap
(int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:290
↓ 1 callersMethodprocess
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:356
↓ 1 callersMethodsetSize
Sets the GIF frame size. The default size is the size of the first frame added if this method is not invoked. @param w int frame width. @p
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:225
↓ 1 callersMethodunbiasnet
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:369
↓ 1 callersMethodwriteGraphicCtrlExt
Writes Graphic Control Extension
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:362
↓ 1 callersMethodwriteImageDesc
Writes Image Descriptor
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:393
↓ 1 callersMethodwriteLSD
Writes Logical Screen Descriptor
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:416
↓ 1 callersMethodwriteNetscapeExt
Writes Netscape application extension to define repeat count.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:433
↓ 1 callersMethodwritePixels
Encodes and writes pixel data
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:458
MethodGif2VCGenerator
()
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:31
MethodGif3VCGenerator
()
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:29
MethodGifVCGenerator
()
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:23
MethodLZWEncoder
(int width, int height, byte[] pixels, int color_depth)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:104
MethodNeuQuant
(byte[] thepic, int len, int sample)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:116
MethodPngVCGenerator
()
src/com/github/botaruibo/xvcode/generator/PngVCGenerator.java:35
MethodgetFont
()
src/com/github/botaruibo/xvcode/generator/Generator.java:36
MethodgetLen
()
src/com/github/botaruibo/xvcode/generator/Generator.java:44
MethodgetValidCodeImage
no result provide for gif validation code. only for PNG validation code image. only @see com.github.botaruibo.xvcode.generator.Captcha#write2out(Outp
src/com/github/botaruibo/xvcode/generator/Generator.java:96
Methodmain
run on console to generate the images.use: <code>java -jar xvcode.jar -p "/test" -h 50 -w 120 -cl 5</code> @param args @throws FileNotFoundException @
src/com/github/botaruibo/xvcode/main/APP.java:29
MethodsetDispose
Sets the GIF frame disposal code for the last added frame and any subsequent frames. Default is 0 if no transparent color has been set, otherwise 2.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:73
MethodsetFrameRate
Sets frame rate in frames per second. Equivalent to <code>setDelay(1000/fps)</code>. @param fps float frame rate (frames per second)
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:193
MethodsetHeight
(int height)
src/com/github/botaruibo/xvcode/generator/Generator.java:64
MethodsetLen
(int len)
src/com/github/botaruibo/xvcode/generator/Generator.java:48
MethodsetTransparent
Sets the transparent color for the last added frame and any subsequent frames. Since all colors are subject to modification in the quantization proces
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:104
MethodsetWidth
(int width)
src/com/github/botaruibo/xvcode/generator/Generator.java:56
Methodwrite2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:57
Methodwrite2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:70
Methodwrite2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:68
Methodwrite2out
@param os source OutputStream @return OutputStream return OutputStream wrote the validation code image
src/com/github/botaruibo/xvcode/generator/Generator.java:88