Changeset 1816 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 03/12/03 14:05:24 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGPngReader.cc
r1810 r1816 553 553 } 554 554 555 fFile = new TFile( "leds.root", "RECREATE");555 fFile = new TFile(name, "RECREATE"); 556 556 557 557 if (!fFile->IsOpen()) … … 999 999 { 1000 1000 if (fFileType->IsEntryChecked(IDM_kPNG)) 1001 { 1002 static int num = 0; 1003 char name[80]; 1004 sprintf(name, "pix/file%04d.png", num++); 1005 Writer::Png(name, c, tm); 1006 } 1001 Writer::Png("pix/file", c, tm); 1007 1002 1008 1003 if (fFileType->IsEntryChecked(IDM_kPPM)) 1009 { 1010 static int num = 0; 1011 char name[80]; 1012 sprintf(name, "pix/file%04d.ppm", num++); 1013 Writer::Ppm(name, c); 1014 } 1004 Writer::Ppm("pix/file", c, tm); 1015 1005 1016 1006 if (fWriteType->IsEntryChecked(IDM_kOnce)) … … 1149 1139 void MGPngReader::DrawCircle(byte *img, double r) 1150 1140 { 1151 const double rpix = (int)(r*60*60/fSao->GetPixSize()+1);1141 const double rpix = r*60*60/fSao->GetPixSize()+1; 1152 1142 const int cx = 768/2; 1153 1143 const int cy = 576/2; 1154 for (int dx=- rpix*0.7; dx<rpix*0.7; dx++)1144 for (int dx=-(int)(rpix*0.7); dx<(int)(rpix*0.7); dx++) 1155 1145 { 1156 1146 const int dy = (int)sqrt(rpix*rpix-dx*dx); -
trunk/MagicSoft/Cosy/gui/MGStarguider.cc
r1804 r1816 572 572 { 573 573 if (fFileType->IsEntryChecked(IDM_kPNG)) 574 { 575 static int num = 0; 576 char name[80]; 577 sprintf(name, "pix/file%04d.png", num++); 578 Writer::Png(name, c, tm); 579 } 574 Writer::Png("pix/file", c, tm); 580 575 581 576 if (fFileType->IsEntryChecked(IDM_kPPM)) 582 { 583 static int num = 0; 584 char name[80]; 585 sprintf(name, "pix/file%04d.ppm", num++); 586 Writer::Ppm(name, c); 587 } 577 Writer::Ppm("pix/file", c, tm); 588 578 589 579 if (fWriteType->IsEntryChecked(IDM_kOnce))
Note:
See TracChangeset
for help on using the changeset viewer.