Class: Fox::FXJPGImage
- Defined in:
- rdoc-sources/FXJPGImage.rb
Overview
JPEG Image class
Instance Attribute Summary collapse
-
#quality ⇒ Object
Image quality.
Attributes inherited from FXImage
#data, #dataPtr, #options, #pixels
Attributes inherited from FXDrawable
Attributes inherited from FXId
Class Method Summary collapse
-
.fileExt ⇒ Object
Return the suggested file extension for this image type (“jpg”).
-
.mimeType ⇒ Object
Return the MIME type for this image type.
-
.supported? ⇒ Boolean
Return
true
if JPEG image file format is supported.
Instance Method Summary collapse
-
#initialize(a, pix = nil, opts = 0, width = 1, height = 1, quality = 75) ⇒ FXJPGImage
constructor
Return an initialized FXJPGImage instance.
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
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(a, pix = nil, opts = 0, width = 1, height = 1, quality = 75) ⇒ FXJPGImage
Return an initialized FXJPGImage instance.
Parameters:
a
-
an application instance Fox::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]
35 36 |
# File 'rdoc-sources/FXJPGImage.rb', line 35 def initialize(a, pix=nil, opts=0, width=1, height=1, quality=75) # :yields: theJPGImage end |
Instance Attribute Details
#quality ⇒ Object
Image quality
21 22 23 |
# File 'rdoc-sources/FXJPGImage.rb', line 21 def quality @quality end |
Class Method Details
.fileExt ⇒ Object
Return the suggested file extension for this image type (“jpg”).
10 |
# File 'rdoc-sources/FXJPGImage.rb', line 10 def FXJPGImage.fileExt; end |
.mimeType ⇒ Object
Return the MIME type for this image type
15 |
# File 'rdoc-sources/FXJPGImage.rb', line 15 def FXJPGImage.mimeType; end |
.supported? ⇒ Boolean
Return true
if JPEG image file format is supported.
18 |
# File 'rdoc-sources/FXJPGImage.rb', line 18 def FXJPGImage.supported? ; end |