|
Mac Dev Center
Mac OS X Reference Library Apple Applications: Final Cut Pro/Final Cut Express FxPlug Reference
|
FxImage |
The parent class of FxBitmap and FxTexture.
bytes |
Return the number of bytes per pixel component.
- (UInt32)bytes;
Returns 1 (8 bits), 2 (16 bits), or 4 (32 bits).
colorInfo |
Returns the color properties of the image
- (FxImageColorInfo)colorInfo;
This method was introduced in FxPlug 1.2.2. You should check to see if it is implemented before calling it: if ( [theFxImage respondsToSelector:@selector(colorInfo)] )
containsPointX:Y: |
Checks whether the x,y position lies within the image bounds.
- (BOOL)containsPointX:(int)x Y:(int)y;
x y Returns YES if the position lies in the image bounds; NO otherwise.
depth |
Returns the depth of the image in bits per pixel.
- (UInt32)depth;
The depth of the image.
field |
Returns the field identifier of the image.
- (FxField)field;
The field identifier of the image (kFxField_NONE, kFxField_UPPER, or kFxField_LOWER).
This method was introduced in FxPlug 1.2. You should check to see if it is implemented before calling it: if ( [theFxImage respondsToSelector:@selector(field)] )
fieldOrder |
Returns the field order of the image stream
- (FxFieldOrder)fieldOrder;
The field order (kFxFieldOrder_PROGRESSIVE, kFxFieldOrder_UPPER_FIRST, or kFxFieldOrder_LOWER_FIRST).
This method was introduced in FxPlug 1.2. You should check to see if it is implemented before calling it: if ( [theFxImage respondsToSelector:@selector(fieldOrder)] )
height |
Returns the height of the image.
- (UInt32)height;
The height of the image in pixels.
imageInfo |
Returns the FxImageInfo structure that describes the image.
- (FxImageInfo)imageInfo;
The FxImageInfo structure.
imageType |
Returns the type of the image.
- (FxImageType)imageType;
The type of the image (i.e., kFxImageType_BITMAP or kFxImageType_TEXTURE).
initWithInfo: |
Initializes the FxImage with the given FxImageInfo.
- (id)initWithInfo:(FxImageInfo)imageInfo;
imageInfo The initialized FxImage object.
FxImage is an abstract base class. You should never directly allocate an FxImage, but should allocate one of its subclasses (FxBitmap or FxTexture) instead. Sending this method to an FxImage (as opposed to an FxBitmap or FxTexture) raises an exception.
isPremultiplied |
Indicates whether the image's RGB values are premultiplied by its Alpha values.
- (BOOL)isPremultiplied;
YES if premultiplied; NO otherwise.
numActiveChannels |
Returns the number of active channels.
- (UInt32)numActiveChannels;
The number of active channels.
For example, an ARGB image would return a value of 4.
origin |
Returns the orientation of the image.
- (FxImageOrigin)origin;
The FxImageOrigin value (kFxImageOrigin_BOTTOM_LEFT or kFxImageOrigin_TOP_LEFT).
The image origin value defines whether the Y axis increases upwardly or downwardly.
pixelAspect |
Returns the pixel aspect ratio of the image.
- (double)pixelAspect;
The pixel aspect ratio of the image. For example, this method returns 0.9 for an NTSC DV image.
pixelFormat |
Returns the pixel format of the image.
- (FxPixelFormat)pixelFormat;
The FxPixelFormat value.
setBytes: |
Sets the number of bytes per pixel component.
- (void)setBytes:(UInt32)bytes;
bytes Valid values are 1 (8 bits), 2 (16 bits), or 4 (32 bits).
setDepth: |
Sets the the depth of the image in bits per pixel.
- (void)setDepth:(UInt32)depth;
depth setField: |
Sets the field identifier of the image.
- (void)setField:(FxField)field;
field This method was introduced in FxPlug 1.2. You should check to see if it is implemented before calling it: if ( [theFxImage respondsToSelector:@selector(setField:)] )
setFieldOrder: |
Sets the field order of the image stream.
- (void)setFieldOrder:(FxFieldOrder)fieldOrder;
fieldOrder This method was introduced in FxPlug 1.2. You should check to see if it is implemented before calling it: if ( [theFxImage respondsToSelector:@selector(setFieldOrder:)] )
setHeight: |
Sets the height of the image.
- (void)setHeight:(UInt32)height;
height setImageType: |
Sets the type of the image.
- (void)setImageType:(FxImageType)type;
type setIsPremultiplied: |
Sets the premultiplied flag for the image.
- (void)setIsPremultiplied:(BOOL)isPremult;
isPremult setNumActiveChannels: |
Sets the number of active channels in the image.
- (void)setNumActiveChannels:(UInt32)channels;
channels setOrigin: |
Sets the orientation of the image.
- (void)setOrigin:(FxImageOrigin)origin;
origin The image origin value defines whether the Y axis increases upwardly or downwardly.
setPixelAspect: |
Sets the pixel aspect ratio of the image.
- (void)setPixelAspect:(double)aspectRatio;
aspectRatio setPixelFormat: |
Sets the pixel format of the image.
- (void)setPixelFormat:(FxPixelFormat)pixelFormat;
pixelFormat setWidth: |
Sets the width of the image.
- (void)setWidth:(UInt32)width;
width setWidth:andHeight: |
Sets both the width and height of the image.
- (void)setWidth:(UInt32)width andHeight:(UInt32)height;
width height size |
Returns the size of the image.
- (UInt32)size;
Size of the image in bytes.
This method is only valid for 32-bpp (8-bit integer components) ARGB images.
width |
Returns the width of the image.
- (UInt32)width;
The width of the image in pixels.
Last Updated: 2009-04-14