Codebase list ruby-fxruby / run/8a909198-7fff-4596-a78d-571f487fdb51/upstream rdoc-sources / FXJPGImage.rb
run/8a909198-7fff-4596-a78d-571f487fdb51/upstream

Tree @run/8a909198-7fff-4596-a78d-571f487fdb51/upstream (Download .tar.gz)

FXJPGImage.rb @run/8a909198-7fff-4596-a78d-571f487fdb51/upstreamraw · history · blame

module Fox
  #
  # JPEG Image class
  #
  class FXJPGImage < FXImage

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

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

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

    # Image quality
    attr_accessor :quality

    #
    # Return an initialized FXJPGImage instance.
    #
    # ==== Parameters:
    #
    # +a+:: an application instance {FXApp}
    # +pix+:: a memory buffer formatted in JPEG file format [String]
    # +opts+:: options [Integer]
    # +width+:: width [Integer]
    # +height+:: height [Integer]
    # +quality+:: JPEG image quality [Integer]
    #
    def initialize(a, pix=nil, opts=0, width=1, height=1, quality=75) # :yields: theJPGImage
    end
  end
end