#include <string.h>
#include <png.h>
#include "ut_assert.h"
#include "ut_bytebuf.h"
#include "ut_debugmsg.h"
Classes | |
struct | _bb |
Functions | |
static void | _png_read (png_structp png_ptr, png_bytep data, png_size_t length) |
bool | UT_PNG_getDimensions (const UT_ConstByteBufPtr &pBB, UT_sint32 &iImageWidth, UT_sint32 &iImageHeight) |
static void _png_read | ( | png_structp | png_ptr, | |
png_bytep | data, | |||
png_size_t | length | |||
) | [static] |
References _bb::iCurPos, _bb::pBB, and UT_WARNINGMSG.
Referenced by UT_PNG_getDimensions().
bool UT_PNG_getDimensions | ( | const UT_ConstByteBufPtr & | pBB, | |
UT_sint32 & | iImageWidth, | |||
UT_sint32 & | iImageHeight | |||
) |
References _png_read(), _bb::iCurPos, and _bb::pBB.
Referenced by s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), FG_GraphicRaster::generateImage(), GR_EmbedManager::getAscent(), GR_EmbedManager::getWidth(), GR_EmbedManager::render(), XAP_Win32Dialog_About::runModal(), and FG_GraphicRaster::setRaster_PNG().