Return the specified component value for this FXColor value, where component is either 0, 1, 2 or 3.
Load a BMP 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.
store: | stream from which to read the file data [FXStream] |
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.
store: | stream from which to read the file data [FXStream] |
Load a ICO file from store (an FXStream instance). On success, returns an array whose elements are the image data (a String), transparency color, icon width, icon height, and the icon hotspot x and y coordinates. If the operation fails, this method returns nil.
store: | stream from which to read the file data [FXStream] |
Load a JPEG file from a stream. If successful, returns an array containing the image pixel data (as a String), transparency color, image width, image height and quality. If it fails, the function returns nil.
store: | stream from which to read the file data [FXStream] |
Load a PCX 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.
store: | stream from which to read the file data [FXStream] |
Load a PNG 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.
store: | stream from which to read the file data [FXStream] |
Load a RGB 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.
store: | stream from which to read the file data [FXStream] |
Load a Targa file from a stream. If successful, returns an array containing the image pixel data (as a String), the number of channels (either 3 or 4), the image width and the image height. If it fails, the function returns nil.
store: | stream from which to read the file data [FXStream] |
Load a TIFF file from a stream. If successful, returns an array containing the image pixel data (as a String), transparency color, width, height and codec setting. If it fails, the function returns nil.
store: | stream from which to read the file data [FXStream] |
Load a XPM file from a stream. If successful, returns an array containing the image pixel data (as an array of FXColor values), the transparency color (another FXColor) and the image width and the image height. If it fails, the function returns nil.
store: | stream from which to read the file data [FXStream] |
Return a "hot key" code value that represents the accelerator key described in the string str. The string can contain some combination of the modifiers Ctrl, Alt and Shift, plus the key of interest. For example, to get the accelerator key for Ctrl+Alt+F7, you‘d use:
hotKey = fxparseAccel("Ctrl+Alt+F7")
Return a hot key value that represents the hot key described in the string str. This method is less flexible than the similar Fox.fxparseAccel, and is mainly used internally for parsing the labels for FXButton and FXMenuCommand widgets. For example, this:
fxparseHotKey("&File")
returns the equivalent of:
fxparseAccel("Alt+F")
Save a BMP image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
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.
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] |
Save a ICO image to store (an FXStream instance). Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
pixels: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
xspot: | hotspot x-coordinate [Integer] |
yspot: | hotspot y-coordinate [Integer] |
Save a JPEG image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
quality: | image quality [Integer] |
Save a PCX image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
Save a PNG image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
Save a RGB image to a stream. Returns true on success, false on failure.
store: | stream to which to write the file data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
opts: | options [Integer] |
width: | width [Integer] |
height: | height [Integer] |
Save a Targa image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
channels: | number of channels in the image pixel data: 3 for RGB data, or 4 for RGBA data [Integer] |
width: | width [Integer] |
height: | height [Integer] |
Save a TIFF image to a stream. Returns true on success, false on failure.
store: | stream to which to write the image data [FXStream] |
data: | the image pixel data [String] |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
codec: | codec setting [Integer] |
Obtain hot key offset in string, or -1 if not found. For example, findHotKey("Salt && &Pepper!") yields 7. Note that this is the byte-offset, not the character index!
Save an XPM image to store (an FXStream instance). Returns true on success, false on failure.
store: | stream to which to write the file data [FXStream] |
data: | the image pixel data, an array of FXColor values |
transp: | transparency color [FXColor] |
width: | width [Integer] |
height: | height [Integer] |
fast: | if true, use fast something |
Parse accelerator from string, yielding modifier and key code. For example, parseAccel("Ctl+Shift+X") yields MKUINT(KEY_X,CONTROLMASK|SHIFTMASK).
Parse hot key from string, yielding modifier and key code. For example, parseHotKey(""Salt && &Pepper!"") yields MKUINT(KEY_p,ALTMASK).
Strip hot key combination from the string. For example, stripHotKey("Salt && &Pepper") should yield "Salt & Pepper".
Unparse hot key comprising modifier and key code back into a string suitable for parsing with parseHotKey.