DynaPDF Manual - Page 217

Previous Page 216   Index   Next Page 218

Function Reference
Page 217 of 818
CS.IColorSpaceObj,
esDeviceCMYK);
inClr[i] = 0.0;
}
}
}
void EnumSpotColors(const void* PDF)
{
UI32 j;
SI32 i, count;
TPDFColorSpaceObj cs;
TDeviceNAttributes at;
count = pdfGetColorSpaceCount(PDF);
for (i = 0; i < count; i++)
{
if (pdfGetColorSpaceObj(PDF, i, &cs))
{
switch(cs.Type)
{
case esDeviceN:
case esNChannel:
{
if (cs.IAttributes)
{
// Process the separation color spaces directly
if (pdfGetDeviceNAttributes(cs.IAttributes, &at))
{
for (j = 0; j < at.SeparationsCount; j++)
{
if (pdfGetColorSpaceObjEx(at.Separations[j],&cs))
ProcessColorSpace(cs);
}
}
continue;
}
}
case esSeparation: ProcessColorSpace(cs); continue;
default:
continue;
}
}
}
}
 

Previous topic: ConvColor

Next topic: ConvertColors


Start Chat