Sha256: 7529c809dce46a21f38b813f0d078e8a5cfe996859392002ba7271956dd48289

Contents?: true

Size: 1.66 KB

Versions: 37

Compression:

Stored size: 1.66 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]
    # +width+::	width [Integer]
    # +height+::	height [Integer]
    #
    def initialize(a, pix=nil, clr=0, opts=0, width=1, height=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

37 entries across 37 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.22.pre2 rdoc-sources/FXTGAIcon.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXTGAIcon.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXTGAIcon.rb
fxruby-1.6.20 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.11 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.10 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.12 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.13 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.14 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.15 rdoc-sources/FXTGAIcon.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FXTGAIcon.rb