HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IMG_PSD Class Reference

#include <IMG_FilePSD.h>

+ Inheritance diagram for IMG_PSD:

Public Member Functions

 IMG_PSD ()
 
 ~IMG_PSD () override
 
const char * className () const override
 
int open () override
 Opens a .psd type file to prepare for reading. More...
 
int readScanline (int y, void *buf) override
 Reads a single scanline for given row y into the buffer buf. A scanline is all the image data required to draw a single row. More...
 
int create (const IMG_Stat &stat) override
 
int writeScanline (int scan, const void *buf) override
 
int closeFile () override
 Flushes any open buffers, and releases all allocated memory. Gets called by the destructor to do any cleanup. More...
 
const UT_Array
< IMG_PSDLayerRecords > & 
getRawLayerRecords ()
 
UT_Array< intgetTreeLevelsFromRawLayerRecords ()
 

Static Public Member Functions

static void registerFormat ()
 

Detailed Description

Definition at line 543 of file IMG_FilePSD.h.

Constructor & Destructor Documentation

IMG_PSD::IMG_PSD ( )
IMG_PSD::~IMG_PSD ( )
override

Member Function Documentation

const char* IMG_PSD::className ( ) const
inlineoverride

Definition at line 553 of file IMG_FilePSD.h.

int IMG_PSD::closeFile ( )
override

Flushes any open buffers, and releases all allocated memory. Gets called by the destructor to do any cleanup.

int IMG_PSD::create ( const IMG_Stat stat)
override
const UT_Array<IMG_PSDLayerRecords>& IMG_PSD::getRawLayerRecords ( )
UT_Array<int> IMG_PSD::getTreeLevelsFromRawLayerRecords ( )
int IMG_PSD::open ( )
override

Opens a .psd type file to prepare for reading.

int IMG_PSD::readScanline ( int  y,
void buf 
)
override

Reads a single scanline for given row y into the buffer buf. A scanline is all the image data required to draw a single row.

Parameters
[in]yRow number to be read starting ranging from 0 to the images height - 1 (inclusive).
[out]bufBuffer where the image data needs to be passed into
static void IMG_PSD::registerFormat ( )
static
int IMG_PSD::writeScanline ( int  scan,
const void buf 
)
override

The documentation for this class was generated from the following file: