Sha256: d3d150c3a70aa62cc3f75fbdb5c1882a71918dcfa38cb6bf003b5365c1778df7

Contents?: true

Size: 1.83 KB

Versions: 4

Compression:

Stored size: 1.83 KB

Contents

module Fox
  #
  # JPEG icon class
  #
  class FXJPGIcon < FXIcon

    #
    # Return the suggested file extension for this image type ("jpg").
    #
    def FXJPGIcon.fileExt; end

    #
    # Return the MIME type for this image type
    #
    def FXJPGIcon.mimeType; end

    # Return +true+ if JPEG image file format is supported.
    def FXJPGIcon.supported? ; end

    # 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]
    # +width+::	width [Integer]
    # +height+::	height [Integer]
    # +quality+:: JPEG image quality [Integer]
    #
    def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1, quality=75) # :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

  #
  # Return +true+ if _store_ (an FXStream instance) contains a JPEG image.
  #
  def Fox.fxcheckJPG(store); end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fxruby-1.6.22-x86-mingw32 rdoc-sources/FXJPGIcon.rb
fxruby-1.6.22 rdoc-sources/FXJPGIcon.rb
fxruby-1.6.22.pre4-x86-mingw32 rdoc-sources/FXJPGIcon.rb
fxruby-1.6.22.pre4 rdoc-sources/FXJPGIcon.rb