fix convert image bug
This commit is contained in:
parent
cb8eb3f6e4
commit
fe7dd3b14f
2 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ TOStream::TOStream(const TFilePath &fp, bool compressed)
|
||||||
TOStream::TOStream(std::shared_ptr<Imp> imp)
|
TOStream::TOStream(std::shared_ptr<Imp> imp)
|
||||||
: m_imp(std::move(imp))
|
: m_imp(std::move(imp))
|
||||||
{
|
{
|
||||||
assert(!imp->m_tagStack.empty());
|
assert(!m_imp->m_tagStack.empty());
|
||||||
ostream &os = *m_imp->m_os;
|
ostream &os = *m_imp->m_os;
|
||||||
if (m_imp->m_justStarted == false)
|
if (m_imp->m_justStarted == false)
|
||||||
cr();
|
cr();
|
||||||
|
|
|
@ -344,8 +344,8 @@ void Convert2Tlv::buildInksForNAAImage(TRasterCM32P &rout, const TRaster32P &rin
|
||||||
for (j = 0; j < rin->getLx(); j++, pixin++, pixout++) {
|
for (j = 0; j < rin->getLx(); j++, pixin++, pixout++) {
|
||||||
TPixel colorIn;
|
TPixel colorIn;
|
||||||
|
|
||||||
/*-白ピクセルを透明として扱う-*/
|
/*- treat white/transparent pixels as transparent -*/
|
||||||
if (*pixin == TPixel(255, 255, 255)) {
|
if (*pixin == TPixel(255, 255, 255) || *pixin == TPixel::Transparent) {
|
||||||
*pixout = TPixelCM32(0, 0, 255);
|
*pixout = TPixelCM32(0, 0, 255);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue