#include <c4d_basebitmap.h>
A helper class to convert the ColorProfile of bitmaps. 
- Note
 - Has to be created with Alloc() and destroyed with Free(). Use AutoAlloc to automate the allocation and destruction based on scope. 
 
- See also
 - BaseBitmap::GetPixelCnt() 
 
 
◆ ColorProfileConvert() [1/2]
◆ ~ColorProfileConvert()
◆ ColorProfileConvert() [2/2]
◆ operator=()
◆ Alloc()
◆ Free()
Destructs ColorProfileConvert instances allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope. 
- Parameters
 - 
  
    | [in,out] | convert | The ColorProfileConvert instance to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.  | 
  
   
 
 
◆ PrepareTransform()
Prepares the color conversion i.e. checks if a conversion is needed.
A conversion is only necessary if true is returned. Two identical color spaces will return false. 
- Parameters
 - 
  
    | [in] | srccolormode | The source color mode: COLORMODE  | 
    | [in] | srcprofile | The source color profile: The caller owns the pointed color profile.  | 
    | [in] | dstcolormode | The destination color mode: COLORMODE  | 
    | [in] | dstprofile | The destination color profile: The caller owns the pointed color profile.  | 
    | [in] | bgr | true to swap the RGB channels, otherwise false.. Only necessary when working directly with Windows bitmaps.  | 
  
   
- Returns
 - true if a conversion is necessary, otherwise false. 
 
 
 
◆ Convert()
      
        
          | void Convert  | 
          ( | 
          const PIX *  | 
          src,  | 
        
        
           | 
           | 
          PIX *  | 
          dst,  | 
        
        
           | 
           | 
          Int32  | 
          cnt,  | 
        
        
           | 
           | 
          Int32  | 
          SkipInputComponents,  | 
        
        
           | 
           | 
          Int32  | 
          SkipOutputComponents  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Converts the color profiles of the pixel data. 
- Parameters
 - 
  
    | [in] | src | The pointer to the source pixel buffer. The caller owns the pointed buffer.  | 
    | [out] | dst | The pointer to the destination pixel buffer. The caller owns the pointed buffer.  | 
    | [in] | cnt | The number of pixels to convert.  | 
    | [in] | SkipInputComponents | The number of bytes to skip in the source buffer after each converted pixel. For instance a RGB pixel contains 3 bytes. 
 After conversion the number of SkipInputComponents bytes is added to the source pointer.  | 
    | [in] | SkipOutputComponents | The number of bytes to skip in the destination buffer after each converted pixel. For instance a RGB pixel contains 3 bytes. 
 After conversion the number of SkipOutputComponents bytes is added to the destination pointer.  |