SetNewStripe example for C++ Builder
int nStripe;
int nSeg;
int nRet;
nStripe = LEADMRC1->SetNewStripe (0, 100);
if (nStripe >= 0)
{
nSeg= LEADMRC1->SetStripeSegment (nStripe, 10, 10, 140, 80, SEGMENT_PICTURE, 0, 0);
if (nSeg >= 0)
{
nRet = LEADMRC1->UpdateSegmentData (nSeg, 5, 5, 150, 90, SEGMENT_TEXT, clBlack, clWhite, True);
if (nRet == SUCCESS)
ShowMessage ("Update Successful");
nRet= LEADMRC1->DeleteSegment (nSeg);
if (nRet == SUCCESS)
ShowMessage ("delete Successful");
}
}