Class: Fox::FXJPGIcon

Inherits:
FXIcon show all
Defined in:
rdoc-sources/FXJPGIcon.rb

Overview

JPEG icon class

Instance Attribute Summary collapse

Attributes inherited from FXIcon

#transparentColor

Attributes inherited from FXImage

#data, #dataPtr, #options, #pixels

Attributes inherited from FXDrawable

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FXImage

#blend, #crop, #fade, #fill, #getPixel, #gradient, #hasAlpha?, #hgradient, #initialize_without_data_string, #loadPixels, #mirror, #pixel_string, #release, #render, #restore, #rotate, #savePixels, #scale, #setPixel, #setPixels, #setPixels_without_data_string, #vgradient, #xshear, #yshear

Methods inherited from FXDrawable

#resize

Methods inherited from FXId

#create, #created?, #destroy, #detach, #runOnUiThread

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

#initialize(a, pix = nil, clr = 0, opts = 0, width = 1, height = 1, quality = 75) ⇒ FXJPGIcon

Return an initialized FXJPGIcon instance.

Parameters:

a

an application instance Fox::FXApp

pix

a memory buffer formatted in JPEG file format [String]

clr

transparency color Fox::FXColor

opts

options [Integer]

width

width [Integer]

height

height [Integer]

quality

JPEG image quality [Integer]



36
37
# File 'rdoc-sources/FXJPGIcon.rb', line 36

def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1, quality=75) # :yields: theJPGIcon
end

Instance Attribute Details

#qualityObject

Image quality setting [Integer]



21
22
23
# File 'rdoc-sources/FXJPGIcon.rb', line 21

def quality
  @quality
end

Class Method Details

.fileExtObject

Return the suggested file extension for this image type (“jpg”).



10
# File 'rdoc-sources/FXJPGIcon.rb', line 10

def FXJPGIcon.fileExt; end

.mimeTypeObject

Return the MIME type for this image type



15
# File 'rdoc-sources/FXJPGIcon.rb', line 15

def FXJPGIcon.mimeType; end

.supported?Boolean

Return true if JPEG image file format is supported.

Returns:

  • (Boolean)


18
# File 'rdoc-sources/FXJPGIcon.rb', line 18

def FXJPGIcon.supported? ; end