StripByteCounts changed after drawing text
Posted: 2007-07-06T08:05:54-07:00
before StripByteCounts (5 Long): 8232, 8232, 8232, 8232, 5488
after
StripByteCounts (10 Long): 7840, 7840, 7840, 7840, 7840, 7840, 7840,...
I wish I knew what that meant!?!?
Any help is greatly appreciated.
the upshot is that the image is corrupted, looks weird in our proprietary viewer.
The code i executed from VC6 (edited to protect the identity of the not so innocent)
LPCSTR pText;
MagickLib::ExceptionInfo myinfo;
Magick::InitializeMagick("C:\\code\\imagemagickwindows\\ImageMagick-6.3.4\\VisualMagick\\lib");
Magick::Image myImage;// = new Magick::Image();
myImage.read("jzf1.tif");
pWidth =50;
pHeight =100;
pText = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::list<Magick::Drawable> drawList;
drawList.push_back(Magick::DrawablePointSize(10));
drawList.push_back(Magick::DrawableText(pWidth, pHeight, pText));
myImage.draw(drawList);
myImage.write(jzf1texted.tif");
after
StripByteCounts (10 Long): 7840, 7840, 7840, 7840, 7840, 7840, 7840,...
I wish I knew what that meant!?!?
Any help is greatly appreciated.
the upshot is that the image is corrupted, looks weird in our proprietary viewer.
The code i executed from VC6 (edited to protect the identity of the not so innocent)
LPCSTR pText;
MagickLib::ExceptionInfo myinfo;
Magick::InitializeMagick("C:\\code\\imagemagickwindows\\ImageMagick-6.3.4\\VisualMagick\\lib");
Magick::Image myImage;// = new Magick::Image();
myImage.read("jzf1.tif");
pWidth =50;
pHeight =100;
pText = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::list<Magick::Drawable> drawList;
drawList.push_back(Magick::DrawablePointSize(10));
drawList.push_back(Magick::DrawableText(pWidth, pHeight, pText));
myImage.draw(drawList);
myImage.write(jzf1texted.tif");