How to convert Raster Art into clipped art ...................
Dear Friends,
I am trying to convert all path art and raster art into clipped art.
By using below given code snippet I am able to convert all path art into clipped art but only raster art is just copying the same image and converting as a group.
AIArtHandle compound_path_child;
AIArtHandle h_group;
AIPathStyle style = { 0 };
sAILayer->SetCurrentLayer(layer);
sAIArt->GetArtFirstChild(firstArt, &compound_path_child);
sAIArt->NewArt(kGroupArt, kPlaceAboveAll, firstArt, &h_group);
sAIArt->ReorderArt(duplicateArt, kPlaceInsideOnTop, h_group);
sAIArt->ReorderArt(firstArt, kPlaceInsideOnTop, h_group);
style.stroke.color.kind = kThreeColor;
style.stroke.color.c.rgb.blue = 0;
style.stroke.color.c.rgb.green = 0;
style.stroke.color.c.rgb.red = 0;
style.stroke.width = 6.0f;
style.stroke.join = kAIMiterJoin;
style.stroke.cap = kAIButtCap;
style.stroke.miterLimit = 10.0f;
style.strokePaint = 1;
style.clip = 1;
sAIPathStyle->SetPathStyle(compound_path_child, &style);
sAIPathStyle->SetPathStyle(firstArt, &style);
sAIGroup->SetGroupClipped(h_group, true);
Please assist me how to convert raster art into clipped art .
Thanks in Advance.