using CPP Builder and CADImportVCL.
following, I get the scale part image in a point.
but the image somtimes exactly display or absent image in the TsgImage
why?
Code: Select all
TFPoint SearchPoint;
Extended vScale;
double vX, vY;
TFRect vExt;
char DS;
String S;
sgPaintBox->Align = alNone;
vExt = Img->Extents;
vX = StrToFloat(Edit1->Text);
vY = StrToFloat(Edit2->Text);
SearchPoint.X = vX;
SearchPoint.Y = vY;
SearchPoint.Z = 0;
vScale = StrToFloat(Edit7->Text);
sgPaintBox->ShowPoint(SearchPoint, vScale, Img->Extents);