Files
core/PdfReader/Src/ExtractImageOutputDev.h
Ilya.Kirillov 65d72ae4ec Убраны лишние файлы. Все файлы сконвертированы в UTF8.
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62550 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:02:55 +03:00

73 lines
1.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _PDF_READER_EXTRACT_IMAGE_OUTPUTDEV_H
#define _PDF_READER_EXTRACT_IMAGE_OUTPUTDEV_H
#include <stdio.h>
#include "OutputDevice.h"
namespace PdfReader
{
class GrState;
//-------------------------------------------------------------------------------------------------------------------------------
// ExtractImageOutputDev
//-------------------------------------------------------------------------------------------------------------------------------
class ExtractImageOutputDev : public OutputDev
{
public:
ExtractImageOutputDev(GlobalParams *pGlobalParams, char *sFilePrefix, bool bDumpJPEG, bool bCountImages = false);
virtual ~ExtractImageOutputDev();
virtual bool CheckValidate()
{
return m_bValid;
}
virtual bool InterpretType3Chars()
{
return false;
}
virtual bool NeedNonText()
{
return true;
}
// Информация об устройстве.
virtual bool UpSideDown()
{
return false;
}
virtual bool UseDrawChar()
{
return false;
}
virtual void DrawImageMask(GrState *pGState, Object *pRef, Stream *pStream, int nWidth, int nHeight, bool bInvert, bool bInlineImage);
virtual void DrawImage(GrState *pGState, Object *pRef, Stream *pStream, int nWidth, int nHeight, GrImageColorMap *pColorMap, int *pnMaskColors, bool bInlineImage);
//
int GetImagesCount()
{
return m_nImageCount;
}
private:
char *m_sFilePrefix; //
char *m_sFileName; //
bool m_bDumpJPEG; //
int m_nImageCount; // Текущее количество изображений
bool m_bCountImages; // Считаем картинки
bool m_bValid;
};
}
#endif // _PDF_READER_EXTRACT_IMAGE_OUTPUTDEV_H