Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Example of File Writing (in MFC and C++)<br />
void GenerateIJQFile()<br />
{<br />
CString ijqFileName = _T("C:\\jobname.ijq");<br />
}<br />
Appendix E. IJQ File Format<br />
Example of File Writing (in MFC and C++)<br />
CFile file(ijqFileName, CFile::modeCreate|CFile::modeWrite);<br />
int ripcount = 4;<br />
file.write((int*)&ripcount, sizeof(int));<br />
CRIPMono monochromeRIP1;<br />
monochromeRIP1.isCMYK = FALSE;<br />
monochromeRIP1.side = 0;<br />
monochromeRIP1.posDx = 0.0;<br />
monochromeRIP1.rgb = RGB(255, 0, 0);<br />
monochromeRIP1.idRip = 0;<br />
monochromeRIP1.Write(file);<br />
CRIPMono monochromeRIP2;<br />
monochromeRIP2.isCMYK = FALSE;<br />
monochromeRIP2.side = 0;<br />
monochromeRIP2.posDx = 1.0;<br />
monochromeRIP2.rgb = RGB(255, 0, 255);<br />
monochromeRIP2.idRip = 1;<br />
monochromeRIP2.Write(file);<br />
CRIPCmyk cmykRIP3;<br />
cmykRIP3.isCMYK = 1;<br />
cmykRIP3.side = 1;<br />
cmykRIP3.posDx = 8.0;<br />
cmykRIP3.idRips[0] = 2;<br />
cmykRIP3.idRips[1] = 3;<br />
cmykRIP3.idRips[2] = 4;<br />
cmykRIP3.idRips[3] = 5;<br />
cmykRIP3.Write(file);<br />
CRIPMono monochromeRIP4;<br />
monochromeRIP4.isCMYK = FALSE;<br />
monochromeRIP4.side = 0;<br />
monochromeRIP4.posDx = 1.0;<br />
monochromeRIP4.rgb = RGB(255, 255, 255);<br />
monochromeRIP4.idRip = 6;<br />
monochromeRIP4.Write(file);<br />
/////end/////<br />
Reference Guide E - 3