Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/botaruibo/xvcode
/ functions
Functions
72 in github.com/botaruibo/xvcode
⨍
Functions
72
◇
Types & classes
10
↓ 42 callers
Method
num
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 callers
Method
writeShort
Write 16-bit value to output stream, LSB first
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:467
↓ 5 callers
Method
alphas
generate the random validation strings @return
src/com/github/botaruibo/xvcode/generator/Generator.java:27
↓ 5 callers
Method
output
(int code, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:245
↓ 4 callers
Method
color
pick color from a random range @return Color random color
src/com/github/botaruibo/xvcode/generator/Generator.java:73
↓ 4 callers
Method
setFont
(Font font)
src/com/github/botaruibo/xvcode/generator/Generator.java:40
↓ 4 callers
Method
text
get random validation code string as lower case @return validation code
src/com/github/botaruibo/xvcode/generator/Generator.java:101
↓ 4 callers
Method
write2out
(OutputStream os)
src/com/github/botaruibo/xvcode/generator/PngVCGenerator.java:74
↓ 3 callers
Method
MAXCODE
(int n_bits)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:227
↓ 3 callers
Method
addFrame
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 callers
Method
finish
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 callers
Method
setDelay
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 callers
Method
setQuality
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 callers
Method
setRepeat
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 callers
Method
start
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 callers
Method
char_out
(byte c, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:113
↓ 2 callers
Method
cl_hash
(int hsize)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:131
↓ 2 callers
Method
flush_char
(OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:219
↓ 2 callers
Method
getAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:119
↓ 2 callers
Method
getHeight
()
src/com/github/botaruibo/xvcode/generator/Generator.java:60
↓ 2 callers
Method
getWidth
()
src/com/github/botaruibo/xvcode/generator/Generator.java:52
↓ 2 callers
Method
nextPixel
()
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:234
↓ 2 callers
Method
writePalette
Writes color table
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:447
↓ 2 callers
Method
writeString
Writes string to output stream
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:475
↓ 1 callers
Method
alpha
()
src/com/github/botaruibo/xvcode/generator/XRandoms.java:31
↓ 1 callers
Method
alterneigh
(int rad, int i, int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:387
↓ 1 callers
Method
altersingle
(int alpha, int i, int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:429
↓ 1 callers
Method
analyzePixels
Analyzes image colors and creates color map.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:281
↓ 1 callers
Method
cl_block
(OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:122
↓ 1 callers
Method
colorMap
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:135
↓ 1 callers
Method
compress
(int init_bits, OutputStream outs)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:136
↓ 1 callers
Method
contest
(int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:441
↓ 1 callers
Method
encode
(OutputStream os)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:207
↓ 1 callers
Method
findClosest
Returns index of palette color closest to c
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:316
↓ 1 callers
Method
getAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:146
↓ 1 callers
Method
getAlpha
Calculate alpha @param i @param j @return
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:146
↓ 1 callers
Method
getImagePixels
Extracts image pixels into byte array "pixels"
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:343
↓ 1 callers
Method
getValidCodeImage
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 callers
Method
getValidCodeImage
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 callers
Method
getValidCodeImage
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 callers
Method
getValidCodeImage
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 callers
Method
inxbuild
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:156
↓ 1 callers
Method
learn
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:210
↓ 1 callers
Method
map
(int b, int g, int r)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:290
↓ 1 callers
Method
process
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:356
↓ 1 callers
Method
setSize
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 callers
Method
unbiasnet
()
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:369
↓ 1 callers
Method
writeGraphicCtrlExt
Writes Graphic Control Extension
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:362
↓ 1 callers
Method
writeImageDesc
Writes Image Descriptor
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:393
↓ 1 callers
Method
writeLSD
Writes Logical Screen Descriptor
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:416
↓ 1 callers
Method
writeNetscapeExt
Writes Netscape application extension to define repeat count.
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:433
↓ 1 callers
Method
writePixels
Encodes and writes pixel data
src/com/github/botaruibo/xvcode/gifencoder/AnimatedGifEncoder.java:458
Method
Gif2VCGenerator
()
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:31
Method
Gif3VCGenerator
()
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:29
Method
GifVCGenerator
()
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:23
Method
LZWEncoder
(int width, int height, byte[] pixels, int color_depth)
src/com/github/botaruibo/xvcode/gifencoder/LZWEncoder.java:104
Method
NeuQuant
(byte[] thepic, int len, int sample)
src/com/github/botaruibo/xvcode/gifencoder/NeuQuant.java:116
Method
PngVCGenerator
()
src/com/github/botaruibo/xvcode/generator/PngVCGenerator.java:35
Method
getFont
()
src/com/github/botaruibo/xvcode/generator/Generator.java:36
Method
getLen
()
src/com/github/botaruibo/xvcode/generator/Generator.java:44
Method
getValidCodeImage
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
Method
main
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
Method
setDispose
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
Method
setFrameRate
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
Method
setHeight
(int height)
src/com/github/botaruibo/xvcode/generator/Generator.java:64
Method
setLen
(int len)
src/com/github/botaruibo/xvcode/generator/Generator.java:48
Method
setTransparent
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
Method
setWidth
(int width)
src/com/github/botaruibo/xvcode/generator/Generator.java:56
Method
write2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/GifVCGenerator.java:57
Method
write2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/Gif2VCGenerator.java:70
Method
write2out
(OutputStream out)
src/com/github/botaruibo/xvcode/generator/Gif3VCGenerator.java:68
Method
write2out
@param os source OutputStream @return OutputStream return OutputStream wrote the validation code image
src/com/github/botaruibo/xvcode/generator/Generator.java:88