clones the object
| 540 | |
| 541 | // clones the object |
| 542 | CharSamp *CharSamp::Clone() const { |
| 543 | // create the cropped char samp |
| 544 | CharSamp *samp = new CharSamp(left_, top_, wid_, hgt_); |
| 545 | samp->SetLabel(label32_); |
| 546 | samp->SetFirstChar(first_char_); |
| 547 | samp->SetLastChar(last_char_); |
| 548 | samp->SetNormTop(norm_top_); |
| 549 | samp->SetNormBottom(norm_bottom_); |
| 550 | samp->SetNormAspectRatio(norm_aspect_ratio_); |
| 551 | // copy the bitmap to the cropped img |
| 552 | Copy(0, 0, wid_, hgt_, samp); |
| 553 | return samp; |
| 554 | } |
| 555 | |
| 556 | // Load a Char Samp from a dump file |
| 557 | CharSamp *CharSamp::FromCharDumpFile(unsigned char **raw_data_ptr) { |
no test coverage detected