Sha256: e52f960372a5e5d87b059ece44afe9278f02b7c2f5d040832ff628c25f7cc32f

Contents?: true

Size: 1.35 KB

Versions: 5

Compression:

Stored size: 1.35 KB

Contents

module Fox
  #
  # JPEG icon class
  #
  class FXJPGIcon < FXIcon
  
    # Image quality setting [Integer]
    attr_accessor :quality

    #
    # Return an initialized FXJPGIcon instance.
    #
    # ==== Parameters:
    #
    # +a+::	an application instance [FXApp]
    # +pix+::	a memory buffer formatted in JPEG 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: theJPGIcon
    end
  end
  #
  # 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+.
  #
  # ==== Parameters:
  #
  # +store+::	stream from which to read the file data [FXStream]
  #
  def Fox.fxloadJPG(store); end
  
  #
  # Save a JPEG 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]
  # +quality+::	image quality [Integer]
  #
  def Fox.fxsaveJPG(store, data, transp, width, height, quality); end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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