eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::SwikiImage':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SwikiImage (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::SwikiEntry
      |
      +--Comanche::SwikiFile
         |
         +--Comanche::SwikiImage

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-FileServer
Version:
rev: 1.8 date: 2003/08/29 17:04:35
user: cg
file: SwikiImage.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


SwikiImage

is a file entry for an image (usually, a file that ends with gif, jpeg, jpg, or png). It includes width and height as further instance variables.

INSTANCE VARIABLES:
width = the width of the image (as a number)
height = the height of the image (as a number)


Class protocol:

initialize-release
o  initialize


Instance protocol:

accessing
o  height

o  width

initialization
o  dir: dir mimeType: mimeType
Get Width and Height information from file stream.
On error, width and height become nil

o  getWHFromGifStream: stream
Get Width and Height from a GIF image

o  getWHFromJpegStream: stream
Get Width and Height from a JPEG image

o  getWHFromPngStream: stream
Get Width and Height from a PNG image

testing
o  isAnImage

o  isValid



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:38:54 GMT