fedor@gnu.org
)Bitmap image representation.
Copyright: (C) 1996, 2003, 2004 Free Software Foundation, Inc.
NSBitmapImageRep is an image representation for handling images composed of pixels. The standard image format for NSBitmapImageRep is the TIFF format. However, through the use of image filters and other methods, many other standard image formats can be handled by NSBitmapImageRep. Images are typically handled through the NSImage class and there is often no need to use the NSBitmapImageRep class directly. However there may be cases where you want to manipulate the image bitmap data directly.
- Declared in:
- AppKit/NSBitmapImageRep.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryProduces an NSData object containing a TIFF representation of all the images stored in anArray. BUGS: Currently this only works if the images are NSBitmapImageRep objects, and it only creates an TIFF from the first image in the array.
Produces an NSData object containing a TIFF representation of all the images stored in anArray. The image is compressed according to the compression type and factor . BUGS: Currently this only works if the images are NSBitmapImageRep objects, and it only creates an TIFF from the first image in the array.
Description forthcoming.
Returns a newly allocated NSBitmapImageRep object representing the image stored in imageData. If the image data contains more than one image, the first one is choosen.
Returns an array containing newly allocated NSBitmapImageRep objects representing the images stored in imageData.
Description forthcoming.
Description forthcoming.
Returns an NSData object containing a TIFF representation of the receiver.
Returns an NSData object containing a TIFF representation of the receiver. The TIFF data is compressed using compresssion type and factor.
Returns the first plane of data representing the image.
Returns the number of bits need to contain one pixels worth of data. This is normally the number of samples per pixel times the number of bits in one sample.
Returns the number of bytes in a plane. This is the number of bytes in a row times tne height of the image.
Returns the number of bytes in a row. This is typically based on the width of the image and the bits per sample and samples per pixel (if in medhed configuration). However it may differ from this if set explicitly in -initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel: .
Returns YES
if the receiver can be
stored in a representation compressed using the
compression type.
Description forthcoming.
Files the array data with pointers to each of the data planes representing the image. The data array must be allocated to contain at least -samplesPerPixel pointers.
Returns the receivers compression and compression factor, which is set either when the image is read in or by -setCompression:factor: . Factor is ignored in many compression schemes. For JPEG compression, factor can be any value from 0 to 255, with 255 being the maximum compression.
Initializes a newly created NSBitmapImageRep object to hold image data specified in the planes buffer and organized according to the additional arguments passed into the method.
The planes argument is an array of char pointers where each array holds a single component or plane of data. Note that if data is passed into the method via planes, the data is NOT copied and not freed when the object is deallocated. It is assumed that the data will always be available. If planes is NULL, then a suitable amount of memory will be allocated to store the information needed. One can then obtain a pointer to the planes data using the -bitmapData or -getBitmapDataPlanes: method.
Each component of the data is in "standard" order, such as red, green, blue for RGB color images. The transparency component, if these is one, should always be last.
The other arguments to the method consist of:
YES
if the image has a
transparency component.
YES
if the data is arranged in
planes, i.e. one component per buffer
as stored in the planes array. If
NO
, then the image data is mixed in
one buffer. For instance, for RGB data, the first
sample would contain red, then next green, then
blue, followed by red for the next pixel.
Description forthcoming.
Loads only the default (first) image from the TIFF image contained in data.
Description forthcoming.
Description forthcoming.
Returns YES
if the image components
are stored separately. Returns NO
if the
components are meshed (i.e. all the samples for
one pixel come before the next pixel).
Returns the number of planes in an image. Typically this is equal to the number of samples in a planar image or 1 for a non-planar image.
Description forthcoming.
Returns the number of samples in a pixel. For instance, a normal RGB image with transparency would have a samplesPerPixel of 4.
Description forthcoming.
Description forthcoming.
Description forthcoming.
- Declared in:
- AppKit/NSBitmapImageRep.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.