Sha256: 07ec16a7bc5affd2aec28039955377db839d16452fff72e37bddecb74d6444a7

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 KB

Contents

module Fox
  #
  # Targa Icon
  #
  class FXTGAIcon < FXIcon
    #
    # Return the suggested file extension for this image type ("tga").
    #
    def FXTGAIcon.fileExt; end
    
    #
    # Return the MIME type for this image type
    #
    def FXTGAIcon.mimeType; end

    #
    # Return an initialized FXTGAIcon instance.
    #
    # ==== Parameters:
    #
    # +a+::	an application instance [FXApp]
    # +pix+::	a memory buffer formatted in Targa file format [String]
    # +clr+::	transparency color [FXColor]
    # +opts+::	options [Integer]
    # +w+::	width [Integer]
    # +h+::	height [Integer]
    #
    def initialize(a, pix=nil, clr=0, opts=0, w=1, h=1) # :yields: theTGAIcon
    end
  end
  
  #
  # 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+.
  #
  # ==== Parameters:
  #
  # +store+::	stream from which to read the file data [FXStream]
  #
  def Fox.fxloadTGA(store); end

  #
  # Save a Targa 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]
  # +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]
  #
  def Fox.fxsaveTGA(store, data, channels, width, height); end
  
  #
  # Return +true+ if _store_ (an FXStream instance) contains a TGA image.
  #
  def Fox.fxcheckTGA(store); end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-1.6.0 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.1 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.2 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.3 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.4 rdoc-sources/FXTGAIcon.rb