#include <IPixMapImageStreamData.h>
|
| enum | { kTransparentSampleValue = 0xFE } |
| |
Data interface for PixMapImageStream segment of the image stream manager. This segment is used to target a pixmap as the source image for an ImageStreamManager conversion. This interface should probably be private.
- See Also
- IImageStreamManager
Pixel channel value considered to be transparent
| virtual bool8 IPixMapImageStreamData::GetAddNonWhiteAlpha | ( | | ) | const |
| pure virtual |
Return the current AddNonWhiteAlpha value
| virtual const PixMapHandle IPixMapImageStreamData::GetPixMap | ( | | ) | const |
| pure virtual |
| virtual void IPixMapImageStreamData::SetPixMap | ( | PixMapHandle | pixMap, | | | bool8 | AddNonWhiteAlpha | | ) | | |
| pure virtual |
Set the pixmap used by PixMapImageStream.
- Parameters
| pixMap | - IN: The source image. The client still owns the pixmap and should dispose of it after releasing the ImageStreamManager. Do not dispose of the pixMap until the ImageStreamManager is disposed. |
| AddNonWhiteAlpha | - IN: The AddNonWhiteAlpha is used as follows: If kTrue then an alpha channel byte will added after each pixel (e.g., RGBARGBA...) where the value of each component is not kTransparentSampleValue. Additionally, if each component is kTransparentSampleValue, then the component will be set to 0xFF. So, a client could initialize an image buffer to kTransparentSampleValue, draw into the buffer, and any pixel which was marked by something other than kTransparentSampleValue in any of the components will have a non-zero alpha (effectively clipping out all other pixels). |