#include <ISimpleImageStreamManager.h>
This interface is a helper class for creating an ImageStreamManager to convert either the proxy image data or linked image data, associated with a placed image, to a new image described by a set of IImageAttributes.
- See Also
- IImageStreamManager, IImageStream, IImageAttributes
| virtual void ISimpleImageStreamManager::Close | ( | void | | ) | |
| pure virtual |
| virtual IImageStream* ISimpleImageStreamManager::Open | ( | void | | ) | |
| pure virtual |
Obtain an IImageStream from which a ReadData() method can be called to retrieve data. NOTE: This call could return NULL if an IImageStream cannot be created to map between the source and destination attributes. NOTE: The dstImageAttributes provided to Set() could be changed by the call to Open() is some circumstances. See the notes for QueryImageStream() in IImageStreamManager.h.
- Returns
- Ptr to an IImageStream for retrieving the converted image data.
| virtual ErrorCode ISimpleImageStreamManager::Set | ( | const UIDRef & | imageRef, | | | bool16 | bUseHighRes, | | | IImageAttributes * | dstImageAttributes, | | | bool16 | antiAliasing = kFalse, | | | bool16 | doDiffusion = kFalse, | | | uint8 | grayThreshold = 128 | | ) | | |
| pure virtual |
Set the conversion options.
- Parameters
| imageRef | - IN: UIDRef of the placed image whose image data we want to use as the source. |
| bUseHighRes | - IN: kTrue to use the high-res linked image data. kFalse to use the low resolution proxy image. |
| dstImageAttributes | - IN/OUT: used to setup a pipeline of ImageStream segments to convert the source to a destination with the given attributes. |
| antiAliasing | - IN: If down sampling is required, then passing kTrue causes an averaging based strategy to be used. kFalse causes a simple sub-sampling strategy to be used. Default is kFalse. |
| doDiffusion | - IN: Sets whether or not to do diffusion during chunky to indexed conversion. Default is not. |
| grayThreshold | - IN: If converting to 1-bit, use this value to determine if a pixel should be black or white. Default is 128 |