Sha256: 97bf22be4d830b2102a8688849d65c0d5e88432fa16cba5a2fd8c76f1b3f1606
Contents?: true
Size: 1.57 KB
Versions: 37
Compression:
Stored size: 1.57 KB
Contents
module Fox # # PCX icon # class FXPCXIcon < FXIcon # # Return the suggested file extension for this image type ("pcx"). # def FXPCXIcon.fileExt; end # # Return the MIME type for this image type # def FXPCXIcon.mimeType; end # # Return an initialized FXPCXIcon instance. # # ==== Parameters: # # +a+:: an application instance [FXApp] # +pix+:: a memory buffer formatted in PCX file format [String] # +clr+:: transparency color [FXColor] # +opts+:: options [Integer] # +width+:: width [Integer] # +height+:: height [Integer] # def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: thePCXIcon end end # # 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+. # # ==== Parameters: # # +store+:: stream from which to read the file data [FXStream] # def Fox.fxloadPCX(store); end # # Save a PCX image to a stream. # Returns +true+ on success, +false+ on failure. # # ==== Parameters: # # +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] # def Fox.fxsavePCX(store, data, transp, width, height); end # # Return +true+ if _store_ (an FXStream instance) contains a PCX image. # def Fox.fxcheckPCX(store); end end
Version data entries
37 entries across 37 versions & 2 rubygems