Public Member Functions | Private Member Functions | Private Attributes

IE_ImpGraphic_BMP Class Reference

#include <ie_impGraphic_BMP.h>

Inheritance diagram for IE_ImpGraphic_BMP:
IE_ImpGraphic

List of all members.

Public Member Functions

virtual UT_Error importGraphic (const UT_ConstByteBufPtr &pBB, FG_ConstGraphicPtr &pfg)

Private Member Functions

void InitializePrivateClassData ()
UT_Error _convertGraphic (const UT_ConstByteBufPtr &pBB)
UT_Error Read_BMP_Header (const UT_ConstByteBufPtr &pBB)
UT_Error Initialize_PNG ()
UT_Error Convert_BMP_Pallet (const UT_ConstByteBufPtr &pBB)
UT_Error Convert_BMP (const UT_ConstByteBufPtr &pBB)
UT_Byte ReadByte (const UT_ConstByteBufPtr &pBB, UT_uint32 offset)
UT_uint16 Read2Bytes (const UT_ConstByteBufPtr &pBB, UT_uint32 offset)
UT_uint32 Read4Bytes (const UT_ConstByteBufPtr &pBB, UT_uint32 offset)
UT_uint32 ReadBytes (const UT_ConstByteBufPtr &pBB, UT_uint32 offset, UT_uint32 num_bytes)

Private Attributes

png_structp m_pPNG
png_infop m_pPNGInfo
UT_uint16 m_iFileType
UT_uint32 m_iFileSize
UT_uint16 m_iXHotspot
UT_uint16 m_iYHotspot
UT_uint32 m_iOffset
UT_uint32 m_iHeaderSize
UT_sint32 m_iWidth
UT_sint32 m_iHeight
UT_uint16 m_iPlanes
UT_uint16 m_iBitsPerPlane
UT_uint32 m_iCompression
UT_uint32 m_iImageSize
UT_uint32 m_iXResolution
UT_uint32 m_iYResolution
UT_uint32 m_iClrUsed
UT_uint32 m_iClrImportant
UT_uint16 m_iResolutionUnits
UT_uint16 m_iPadding
UT_uint16 m_iOrigin
UT_uint16 m_iHalfToning
UT_uint32 m_iHalfToningParam1
UT_uint32 m_iHalfToningParam2
UT_uint32 m_iClrEncoding
UT_uint32 m_iIdentifier
UT_uint32 m_iBytesRead
bool m_bOldBMPFormat
bool m_bHeaderDone
UT_ConstByteBufPtr m_pBB

Member Function Documentation

UT_Error IE_ImpGraphic_BMP::Convert_BMP ( const UT_ConstByteBufPtr pBB  )  [private]
UT_Error IE_ImpGraphic_BMP::Convert_BMP_Pallet ( const UT_ConstByteBufPtr pBB  )  [private]
UT_Error IE_ImpGraphic_BMP::importGraphic ( const UT_ConstByteBufPtr pBB,
FG_ConstGraphicPtr pfg 
) [virtual]

Reimplemented from IE_ImpGraphic.

References _convertGraphic(), m_pBB, and UT_OK.

UT_Error IE_ImpGraphic_BMP::Initialize_PNG (  )  [private]

References _write_flush(), m_pBB, m_pPNG, and m_pPNGInfo.

Referenced by _convertGraphic().

UT_uint16 IE_ImpGraphic_BMP::Read2Bytes ( const UT_ConstByteBufPtr pBB,
UT_uint32  offset 
) [private]

References ReadBytes().

Referenced by Read_BMP_Header().

UT_uint32 IE_ImpGraphic_BMP::Read4Bytes ( const UT_ConstByteBufPtr pBB,
UT_uint32  offset 
) [private]

References ReadBytes().

Referenced by Read_BMP_Header().

UT_Byte IE_ImpGraphic_BMP::ReadByte ( const UT_ConstByteBufPtr pBB,
UT_uint32  offset 
) [private]

References ReadBytes().

Referenced by Convert_BMP_Pallet().

UT_uint32 IE_ImpGraphic_BMP::ReadBytes ( const UT_ConstByteBufPtr pBB,
UT_uint32  offset,
UT_uint32  num_bytes 
) [private]

Member Data Documentation


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