Sha256: ff715562fd97e9f5a23d97a48b5a8fd2b887d03d09d12b593fcbe52bcad6c87f

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

module Fox
  #
  # Targa Icon
  #
  class FXTGAIcon < FXIcon
    #
    # 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 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 fxsaveTGA(store, data, channels, width, height); end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-1.2.3 rdoc-sources/FXTGAIcon.rb
fxruby-1.2.2 rdoc-sources/FXTGAIcon.rb
fxruby-1.2.4 rdoc-sources/FXTGAIcon.rb
fxruby-1.2.5 rdoc-sources/FXTGAIcon.rb
fxruby-1.2.6 rdoc-sources/FXTGAIcon.rb