fix convert image bug

This commit is contained in:
shun_iwasawa 2016-04-18 22:59:56 +09:00
parent cb8eb3f6e4
commit fe7dd3b14f
2 changed files with 3 additions and 3 deletions

View file

@ -260,7 +260,7 @@ TOStream::TOStream(const TFilePath &fp, bool compressed)
TOStream::TOStream(std::shared_ptr<Imp> imp)
: m_imp(std::move(imp))
{
assert(!imp->m_tagStack.empty());
assert(!m_imp->m_tagStack.empty());
ostream &os = *m_imp->m_os;
if (m_imp->m_justStarted == false)
cr();

View file

@ -344,8 +344,8 @@ void Convert2Tlv::buildInksForNAAImage(TRasterCM32P &rout, const TRaster32P &rin
for (j = 0; j < rin->getLx(); j++, pixin++, pixout++) {
TPixel colorIn;
/*-白ピクセルを透明として扱う-*/
if (*pixin == TPixel(255, 255, 255)) {
/*- treat white/transparent pixels as transparent -*/
if (*pixin == TPixel(255, 255, 255) || *pixin == TPixel::Transparent) {
*pixout = TPixelCM32(0, 0, 255);
continue;
}