- Adopted by:
- DJPEGImage, DPNGImage
- Declared in:
- DImage.h
Protocol Description
The DImage protocol specifies methods that should be implemented by
classes that act as an image.
- Last modified:
- 19-Jul-2008 (DImage.h)
Method Index
- Font members
- - (unsigned) bytesPerPixel
- Return the bytes per pixel
- Returns:
- the number of bytes
- - (unsigned) height
- Return the height of the image
- Returns:
- the height
- - (unsigned) images
- Return the number of images in the image (interlace)
- Returns:
- the images
- - (unsigned) width
- Return the width of the image
- Returns:
- the width
- Image methods
- - (unsigned) readRow :(unsigned char *) data
- Read the next row of image data for blitting
- Parameters:
- data - the image data for the next line (size = _width * _pitch)
- Returns:
- the number of pixels in the row (or 0 for error)
- - (BOOL) writeRow :(unsigned char *) data :(unsigned) width
- Set the next row of image data in the png file (format: RGB..)
- Parameters:
- data - the image data for the next line (size = _width * _bpp)
width - the number of pixels in the row
- Returns:
- success
generated 06-Sep-2008 by ObjcDoc 3.0.0