Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module Fox
#
# GIF Cursor class.
#
class FXGIFCursor < FXCursor
#
# Return the suggested file extension for this image type ("gif").
#
def FXGIFCursor.fileExt; end
#
# Return an initialized FXGIFCursor instance.
#
def initialize(a, pix, hx=-1, hy=-1) # :yields: theGIFCursor
end
end
#
# Save a GIF (Graphics Interchange Format) image to a stream.
# If _fast_ is +true+, the faster Floyd-Steinberg dither method will be used
# instead of the slower Wu quantization algorithm.
# Returns +true+ on success, +false+ on failure.
#
# ==== Parameters:
#
# +store+:: stream to which to write the image data [FXStream]
# +data+:: the image pixel data [Array of FXColor]
# +width+:: width [Integer]
# +height+:: height [Integer]
# +fast+:: if +true+, use faster Floyd-Steinberg algorithm [Boolean]
#
def Fox.fxsaveGIF(store, data, width, height, fast=true); end
#
# Load a GIF file from a stream.
# If successful, returns an array containing the image pixel data (as a
# String), the transparency color, the image width and the image height.
# If it fails, the function returns +nil+.
#
# ==== Parameters:
#
# +store+:: stream from which to read the file data [FXStream]
#
def Fox.fxloadGIF(store); end
#
# Return +true+ if _store_ (an FXStream instance) contains a GIF image.
#
def Fox.fxcheckGIF(store); end
end