The Cel JavaScript class. Adds file storage capabilities to cels.  
 More...
 | 
| File  | imageFile () | 
|   | Get a permanent copy of cel image file. This function without parameters is valid only for ports that point to a physically valid file on disk.  More...
  | 
|   | 
| File  | imageFile (const String &name) | 
|   | Get a permanent copy of cel image file of specific format.  More...
  | 
|   | 
| File  | imageFileAs (const String &name, const String &formatstring, const String &optionstring) | 
|   | Get a permanent copy of cel image file of specific format.  More...
  | 
|   | 
| File  | workingCopy () | 
|   | Get a temporary copy of cel image file.  More...
  | 
|   | 
| File  | workingCopyAs (const String &ext, const String &formatstring=String(), const String &optionstring=String()) | 
|   | Get a temporary copy of cel image file of specific format.  More...
  | 
|   | 
| void  | setEmpty () | 
|   | Set wrapped cel as empty.  More...
  | 
|   | 
| QList< int >  | allocatedRect () | 
|   | Retrieve allocated area of sparse image. Is equal to full area for non-sparse images.  More...
  | 
|   | 
| QList< int >  | rect () | 
|   | Retrieve full area of image.  More...
  | 
|   | 
| bool  | isCel3D () const | 
|   | 
| bool  | convertColorSpace (const String &fromColorSpace, const String &toColorSpace) | 
|   | Convert cel colour space.  More...
  | 
|   | 
The Cel JavaScript class. Adds file storage capabilities to cels. 
A cel JavaScript object can be obtained by calling InputPort::getCel() 
 
◆ allocatedRect
  
  
      
        
          | QList<int> Cel::allocatedRect  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Retrieve allocated area of sparse image. Is equal to full area for non-sparse images. 
- Returns
 - Allocated rect. 4-tuple (x1, y1, width, height). 
 
 
 
◆ convertColorSpace
  
  
      
        
          | bool Cel::convertColorSpace  | 
          ( | 
          const String &  | 
          fromColorSpace,  | 
         
        
           | 
           | 
          const String &  | 
          toColorSpace  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
slot   | 
  
 
Convert cel colour space. 
- Parameters
 - 
  
    | fromColorSpace | the name of the colour space to convert from.  | 
    | toColorSpace | the name of the colour space to convert to.  | 
  
   
- Returns
 - True if success, false if specified colour space names are not supported.
 
cel.imageFile( "c:/tmp/image.png");
  
 
 
◆ imageFile [1/2]
Get a permanent copy of cel image file. This function without parameters is valid only for ports that point to a physically valid file on disk. 
- Returns
 - File 
 
 
 
◆ imageFile [2/2]
  
  
      
        
          | File Cel::imageFile  | 
          ( | 
          const String &  | 
          name | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Get a permanent copy of cel image file of specific format. 
- Parameters
 - 
  
    | name | Name of file to create  | 
  
   
- Returns
 - File 
 
 
 
◆ imageFileAs
  
  
      
        
          | File Cel::imageFileAs  | 
          ( | 
          const String &  | 
          name,  | 
         
        
           | 
           | 
          const String &  | 
          formatstring,  | 
         
        
           | 
           | 
          const String &  | 
          optionstring  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
slot   | 
  
 
Get a permanent copy of cel image file of specific format. 
- Parameters
 - 
  
    | name | Name of file to create  | 
    | formatstring | Format to convert image into  | 
    | optionstring | Image extension specific option (ie. TGA, TGA3, TGA4, SGIDP)  | 
  
   
- Returns
 - File 
 
 
 
◆ isCel3D
  
  
      
        
          | bool Cel::isCel3D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ rect
Retrieve full area of image. 
- Returns
 - Full rect. 4-tuple (x1, y1, width, height). 
 
 
 
◆ setEmpty
Set wrapped cel as empty. 
 
 
◆ workingCopy
  
  
      
        
          | File Cel::workingCopy  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Get a temporary copy of cel image file. 
- Returns
 - File 
 
 
 
◆ workingCopyAs
  
  
      
        
          | File Cel::workingCopyAs  | 
          ( | 
          const String &  | 
          ext,  | 
         
        
           | 
           | 
          const String &  | 
          formatstring = String(),  | 
         
        
           | 
           | 
          const String &  | 
          optionstring = String()  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
slot   | 
  
 
Get a temporary copy of cel image file of specific format. 
- Parameters
 - 
  
    | ext | Extension of image file to create  | 
    | formatstring | Format to convert image into  | 
    | optionstring | Image extension specific option  | 
  
   
- Returns
 - File