- Inherits from:
- Object
- Declared in:
- DImageHeader.h
Object
|
+---DImageHeader
Class Description
The DImageHeader class implements a number of methods for determining the
type of an image file. Due to the fact that only small tests are performed
on the image files, the determination is not full proof. In the future this
will become a factory for image objects.
- Last modified:
- 31-Oct-2007 (DImageHeader.h)
Instance Variables
- private DImageHeaderType _type
- the image type (DIM_UNKN,DIM_JPEG,DIM_GIF,DIM_PNG,DIM_BMP,DIM_PCX,DIM_IFF,DIM_RAS,DIM_PBM,DIM_PGM,DIM_PPM,DIM_PSD,DIM_SWF)
- Constructors
- - (DImageHeader *) init
- Initialise an empty image header object
- Returns:
- the instance
- - (DImageHeader *) init :(id <DDataReadable>) file
- Initialise with a data readable
- Parameters:
- file - the file
- Returns:
- the instance
- Image info methods
- - (const char *) extension
- Return the extension for the type of image
- Returns:
- the extension (or NULL for unknown type)
- - (const char *) mime_type
- Return the mime type for the type of image
- Returns:
- the mime type (or NULL for unknown type)
- - (DImageHeaderType) type
- Return the type of the image (or DIM_UNKN for unknown)
- Returns:
- the type
- Main method
- - (BOOL) inspect :(id <DDataReadable>) file
- Inspect the image file
- Parameters:
- file - the file to be inspected
- Returns:
- success
generated 05-Nov-2007 by ObjcDoc 3.0.0